We can split the bibliography by .bib file (something that is not necessarily very semantic) following biblatex: multiple bibliographies categorised by different .bib files and separating bibliography items based on resource file (the second link shows how to deal with existing keywords).
Adding the additional letter into the label is then as simple as issuing \newrefcontext[labelprefix=<prefix>] before the \printbibliography. See Biblatex entry renumbering and prefixing, Custom citation label, Biblatex with sections, prefix, and reversed order, Separate bibliographies for phdthesis and mastersthesis in biblatex.
\documentclass{article}
\usepackage{xcolor}
\usepackage[backend=biber, style=numeric, defernumbers]{biblatex}
\DeclareSourcemap{
\maps[datatype=bibtex,overwrite]{
\map{
\perdatasource{\jobname-1.bib}
\step[fieldset=keywords, fieldvalue={,file1}, append]
}
\map{
\perdatasource{\jobname-2.bib}
\step[fieldset=keywords, fieldvalue={,file2}, append]
}
}
}
\newcommand*{\mkbibcolourcite}[1]{%
\ifkeyword{file2}
{\textcolor{blue}{#1}}
{#1}}
\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{\mkbibcolourcite{#1}}}
\DeclareFieldFormat{colourcite}{\mkbibcolourcite{#1}}
\renewbibmacro*{cite}{%
\printtext[bibhyperref]{%
\printtext[colourcite]{%
\printfield{labelprefix}%
\printfield{labelnumber}%
\ifbool{bbx:subentry}
{\printfield{entrysetcount}}
{}}}}
\usepackage{filecontents}
\begin{filecontents}{\jobname-1.bib}
@book{book1,
author = {Onymous, Anne},
title = {First Bibliography: Category 1},
date = {2000},
}
@book{book3,
author = {Scribbler, Sarah},
title = {First Bibliography Again: Category A and B},
date = {1899},
keywords = {cata},
}
\end{filecontents}
\begin{filecontents}{\jobname-2.bib}
@book{book2,
author = {Writer, William},
title = {Second Bibliography: Category 2},
date = {2010},
}
@book{book4,
author = {Poetaster, Paula},
title = {Second Bibliography Again: Category B},
date = {1767},
}
\end{filecontents}
\addbibresource{\jobname-1.bib}
\addbibresource{\jobname-2.bib}
\begin{document}
\cite{book1,book2,book3,book4}
\newrefcontext[labelprefix=R]
\printbibliography[keyword=file1]
\newrefcontext[labelprefix=O]
\printbibliography[keyword=file2, title=Other references]
\end{document}
!["[R1, O2, R2, O1]//References//[R1] Anne Onymous. First Bibliography: Category 1. 2000.//[R2] Sarah Scribbler. First Bibliography Again: Category A and B. 1899.//References//[O1] Paula Poetaster. Second Bibliography Again: Category B. 1767.//[O2] William Writer. Second Bibliography: Category 2. 2010." The citation labels starting with "O" are coloured blue, the others are black.](../../images/7dc0f57a069ff33f04aaf7fab910c96f.webp)
edit How embarassing! I completely forgot to colour the citations according to their file/keyword. That is fixed now. Sorry!
biblatexandmultibib. Those two packages are incompatible (biblatexbeing a complete re-implementation of BibTeX's bibliography/citation approach andmultibibbeing a BibTeX-based solution). Do you want to usebiblatex(see https://tex.stackexchange.com/q/5091/35864, you would not be able to keep using your current.bstbibliography style) ormultibib? – moewe Jan 19 '19 at 12:51elsarticle, but leave this question in its original state. See https://tex.meta.stackexchange.com/q/7678/35864 – moewe Jan 19 '19 at 19:26elsarticleedit. – moewe Jan 19 '19 at 19:30