In creating a parser for the UniProt flat file uniprot_sprot.dat
(directory) in the manual for the section SUBCELLULAR LOCATION
is listed
The format of SUBCELLULAR LOCATION is:
CC -!- SUBCELLULAR LOCATION:(( Molecule:)?( Location.)+)?( Note=Free_text(
Flag
)?.)?Where:
- Molecule: Isoform, chain or peptide name
- Location = Subcellular_location(
Flag
)?(; Topology(Flag
)?)?(; Orientation(Flag
)?)?
- Subcellular_location: SL-line of subcell.txt ID-record
- Topology: SL-line of subcell.txt IT-record
- Orientation: SL-line of subcell.txt IO-record
What does Flag
mean?
My best guess at present is that these are the text surrounded by parenthesis, e.g.
Note=Not associated with microtubules (PubMed:21558460).
but that does not help in understanding why it is named flag.
While I can use my parser to verify this is correct when this section is working, it would be nicer to have a better understanding of what the word flag means in this context.
I also checked the XML schema but no help there.
Per request.
More examples from file.
These where gathered using grep.
grep -A 3 -n 'CC -!- SUBCELLULAR LOCATION' /mnt/.../uniprot_sprot.dat
71:CC -!- SUBCELLULAR LOCATION: Host membrane {ECO:0000305}; Single-pass
72-CC membrane protein {ECO:0000305}.
2163:CC -!- SUBCELLULAR LOCATION: Membrane {ECO:0000305}; Single-pass membrane
2164-CC protein {ECO:0000305}.
6003:CC -!- SUBCELLULAR LOCATION: Secreted {ECO:0000305}.
7039:CC -!- SUBCELLULAR LOCATION: Cell membrane {ECO:0000305}; Lipid-anchor,
7040-CC GPI-anchor {ECO:0000305}. Note=In microneme/rhoptry complexes.
7041-CC {ECO:0000250}.
7409:CC -!- SUBCELLULAR LOCATION: Secreted {ECO:0000305}.
8677:CC -!- SUBCELLULAR LOCATION: Virion {ECO:0000269|PubMed:9499098}. Host
8678-CC endoplasmic reticulum-Golgi intermediate compartment
8679-CC {ECO:0000269|PubMed:15016891, ECO:0000269|PubMed:9499098}.
12871:CC -!- SUBCELLULAR LOCATION: Nucleus {ECO:0000250|UniProtKB:P48349}.
12872-CC Cytoplasm {ECO:0000250|UniProtKB:P48349}. Note=Translocates from
12873-CC the cytosol to the nucleus when phosphorylated.
12874-CC {ECO:0000250|UniProtKB:P48349}.
grep -A 6 -n -m 200 'CC -!- SUBCELLULAR LOCATION.*(.*)' /mnt/.../uniprot_sprot.dat
1560049:CC -!- SUBCELLULAR LOCATION: Secreted. Note=Dense core vesicles (DCV).
2452012:CC -!- SUBCELLULAR LOCATION: DNA-(apurinic or apyrimidinic site) lyase,
2452013-CC mitochondrial: Mitochondrion. Note=Translocation from the
2452014-CC cytoplasm to the mitochondria is mediated by ROS signaling and
2452015-CC cleavage mediated by granzyme A. Tom20-dependent translocated
2452016-CC mitochondrial APEX1 level is significantly increased after
2452017-CC genotoxic stress (By similarity). The cleaved APEX2 is only
2452018-CC detected in mitochondria. {ECO:0000250}.
9243083:CC -!- SUBCELLULAR LOCATION: Isoform Soluble copper chaperone CopA(Z):
9243084-CC Cytoplasm {ECO:0000250|UniProtKB:Q59385}.
38197671:CC -!- SUBCELLULAR LOCATION: E(rns) glycoprotein: Host cell membrane
38197672-CC {ECO:0000269|PubMed:28290554}; Peripheral membrane protein. Virion
38197673-CC membrane {ECO:0000269|PubMed:28290554}; Peripheral membrane
38197674-CC protein {ECO:0000305}. Note=The C-terminus membrane anchor of Erns
38197675-CC represents an amphipathic helix embedded in plane into the
38197676-CC membrane.
4924705:CC -!- SUBCELLULAR LOCATION: Note=(Microbial infection) In the presence
4924706-CC of M.tuberculosis EsxA-EsxB complex decreased amounts of B2M are
4924707-CC found on the cell surface (PubMed:25356553).
4924708-CC {ECO:0000269|PubMed:25356553}.
02/18/2019
For the DE line it is noted
A block of DE lines may further contain multiple Includes: and/or Contains: sections and a separate field
Flags
: to indicate whether the protein sequence is a precursor or a fragment:
At present this seems to be related to the answer. When I have the file correctly parsed, then I can check for a correspondence as verification.
uniprot_sprot.dat
I had lying around. But I admit I just looked at a few, I don't really know how togrep
for it. $\endgroup$