Dry Lab

BioSample profiles methods

How PETadex sorts BioSamples into 21 environment profiles, carries them onto sequence clusters, and why counting samples and counting sequences point at different biology.

Why profile BioSamples

Most PETadex sequences come from metagenome runs, and the BioSample record [1] attached to each run is the only description of where it was collected. That record is free text and usually incomplete. To use it as a model feature we need it in a fixed vocabulary, and we need to know how much to trust each label. The profiles do both, and they never read the organism's species name, so a profile describes the sample's environment and not what grew in it.

How a profile is assigned

Seven steps take a BioSample from free-text metadata to a profile on every sequence cluster it contributes to. Pick a step to read it.

How a profile is assigned

1Keep BioSamples with real metadata

A BioSample counts only if a field describes the sample itself.

Left out: samples with no metadata, and 876,790 whose only clue is the submission form they used.

Where the samples are vs where the sequences are

Counting BioSamples and counting sequence clusters give opposite pictures. Human-body profiles are 59.2% of the BioSamples that contribute a PETadex sequence but only 1.4% of the clusters, while natural environments go from 13.2% to 76.3%. Soil alone holds 11.5 times more clusters than its sample count suggests. As an independent check, the profiles also separate by an environmental temperature estimated from the microbes present rather than from the metadata: gut profiles sit near 37 °C and soil and freshwater near 31 °C. The effect is real but small.

Where the samples are vs where the sequences are. (a) For each of 21 metadata profiles, its share of profiled BioSamples that contribute at least one PETadex ORF (purple, n = 2,047,271) and its share of 90% identity sequence clusters, assigned by the majority profile of their ORFs (green, n = 14,455,359). Log scale; the column gives the ratio. (b) Environmental temperature for the same BioSamples: BacDive growth temperature propagated from the taxa present (abundance-weighted), independent of the metadata used to assign profiles. Points are medians, bars interquartile ranges. Kruskal–Wallis ε² = 0.044 (n = 1,964,187).

The chart below is the same data, interactive. Hover a ratio to see what it means, and pick a row to follow that profile through the pipeline: the words that matched, how strong the evidence was, real BioSamples at each evidence tier, and its temperature.

Where the samples are vs where the sequences are
Share of BioSamples (2,047,271)Share of 90% identity clusters (14,455,359)

How to read it: soil is 2.8% of samples but 32.5% of sequence clusters, so it holds 11.5× more sequences than its sample count suggests. Human urogenital holds 193× fewer.

Natural environments
Built and managed
Plant and animal hosts
Human body

Worked example. One profile followed through the pipeline. Pick any row in the chart to switch.

Natural environments
Soil

Bulk, farm, forest and grassland soil, peat, compost.

1
BioSamples

99,768 with metadata

3
Words that match
soilrhizosoltopsoilsubsoilagricultural fieldagricultural landfarmlandgrasslandforestpeatcompostterrestrialfielddirt

Form templates: misag.soil

5
Evidence strength
Stated 79%Inferred 21%Form only 0%
SAMN19228502Stated
metagenome_label
soil metagenome
isolation_source
forest soil
collection_year
2019
SAMN04962100Inferred
isolation_source
forest
country_calc
usa
collection_year
2013

Bold field: the one that decided.

6
Share of sequences

2.8% of samples → 32.5% of clusters: 11.5× more

7
Temperature check
30 °C32 °C34 °C36 °C38 °C

Median 31.1 °C. Faint dots: the other profiles.

BioSample viewer

One real BioSample from each ecosystem that appears elsewhere on the wiki, five sites and five landmarks of the Adjacency Landscape. Each was chosen so that most of its sequences sit in clusters dominated by its own profile. Per-sample temperature is not shown: the BacDive estimate only works across a population, and a single hot-spring sample came out at 30.7 °C.

BioSample Viewer (Demo)One real BioSample from each ecosystem on our other pages. Open a level to go deeper: sample → sequencing run → sequences → cluster.
Arctic Canada
BioSample
SAMN03075713

Cold Arctic sediments and soils, near freezing for most of the year

Collected
Canada
metagenome_label
soil metagenome
env_broad_scale
tundra biome
env_medium
soil

Profile Soil, from metagenome_label = “soil metagenome” · Stated

Its 911 clusters are mostly found in

Soil 96%Other environmental 1%Plant-associated 1%Sediment 1%
Sequencing run

SRR1586268 · Illumina HiSeq 2000 · 30.3 Gb · The University Of Tennessee

PETadex sequences · 934
DD-peptidase/beta-lactamase697 aa
ORF
641091230
Catalytic residues
S, K
HSLPIRKRTTLPSRQRWWRWSDNSHRNIGGTMRFRTRPSIPVLATVALLAMPGNRANGQAASTTASLPEHLTTDTPKSTVGGTTFVAPADWNFSLRGIATILEPPEGDSHIALVDARAPSADSAVALAWIAYMPQHKWPLKVVTPEPDKEGWSDGQSYTYQTSPDEKRSVGALARRANDVWTVVIYDMSDATGEKRSAAVGTLYSRLVPKGYVRESFAGKKAGTLDAASMAKLSAFTENAMRELKVPGVAVGIIQNGKIVFADGFGVRELGKPDKPDANTLFMIASNTKALTTLMLAKLVDAKRFGWETPVTSLLPSFKLGDAATTRQVLVKHLICACTGLPRQDLEWLFEYKTSNAESALRSLGSMQPTSRFGEMFQYSNPMAAAAGYIGGHVALPTLELGAAYDRTMNTLVFQPLGMTSTTFDYSRALSGNHASPHAPDIEGRTAVVPMDINYSIIPMRPAGAGWSNVRDMLKYIALELSNGKLPDGTQYVSRENLLARRERQVGIGTDAVYGMGLMVDNKYGTPVVHHGGDMFGFHSDMMWLPEHNVGAVVLTNADPGWILRTDFRRKLLEVLFDGRDEADANVASEAKSYYAQLSAERKLLTVPADASESSNLAGHYHNDALGEIDVRRAAGRTTFDFGEWSSEVGSRKNPDGSISFITIDAGLEGFEFVVSKGPEKRLTIRDAQHEYVFSGS
90% identity cluster

478 sequences (477 metagenome, 1 NCBI)

Where its members were sampled

Soil 68%Other environmental 16%Plant-associated 10%Sediment 3%
Alpha/Beta Hydrolase869 aa
ORF
641090715
Catalytic residues
D, H, S
PFLDPRSHERPDSGGHRERLLFSDSFSITGRPRESARTGSHRRPSADGGTATGDQGGPGPAQQTLRLAHLHLAAPSPRGGRKKPRIGRPSRIAFSNYERHADVLADQFAHISAIHIRRRQEAGIDPRLVMVIRLNAPVDPEDFRRAGIRVLDDTNGRTVIAFADDPQLLEFHARLTAYKAGPAEGNKHPSYQGFLDAIDTGAEYVGDDKISRRLRDHQATVLPEVALVLDVECWHPGDPAAAEEWRNEVRLKVTQLGGEVLDSYLSNSSLLSLLRVRLQSRHVSTIAEMSAVARVDLRPEPLLTMHDVFNATADDLPAVGAPARDAPIVGVIDSGVRDAHPLLAPAMRDTVVLARSIADARDRDGHGTAVTSLVLHGQLEPLLNERQTPDPVCWILSVRVLDDEHQFPDDELWERLLAEAVEYCADHGARIVNLSVGSALTPYSGAKATPVAALLDEVARRRNLVLVISTGNVAAAAYLAEVDADTPHTYVERLGVSDETRMIDPAPAALALTVGAVCHDPQVGALAREAVEQRPLGNADWPSPFTRRGPGMKDSVKPELVAPGGTLAYDDAAHALTQVPALKLVVASARPDRLLGMDLGTSYAAPLVTHVVAGVAGRHPEASANLLRALTLQSAVETRFWQDLTGGSENERRERARALQGYGRARFEEARSSTNHRVVMYGTAGIRADDVQMWEFPVPRSFTQSSGDRELVVALAFDPPTRGRRLDYLASTMQFEVLRGIKPEVVDAIYRAATEDELEATPEGEDSDPPTDEPKSVAEIGRRRIELEPSANARRGGANQLARWRFKHRLRAEEETYLLMVRNVSSWAGEADLQDYAIAIAWVEDSERDPIYVELEARLRVPIEIEIRA
90% identity cluster

19 sequences (19 metagenome)

Where its members were sampled

Soil 100%
Amidase signature733 aa
ORF
641092897
Catalytic residues
K, S, S
QRVLVEHRHRPGGGTAVLRHPAARPVRLRPQPDPDHRGMGGRHGILRGRDRLPDCAGGDGVPQEAAGVGNPRWCRHLRHPAPGDRSAGQRHQWRHPGPAVEPALGGALHQSPHLRSPGRRRLPAGRCLRAAGIAGPLRGGDVRDRAWDARRNRLDRLPGRLCNQPVPALLREGNRAGCPLRPEAGPAHIAGDPARGGPCLHIGAAAVPTHIPGRRAGGRRGRRRRPRRGTGRGGVQTGPRAKAERGLRAGPGRKLMSTVGLSGVEIAELVRSGRAKPTEVVADHLRQIARLEPRVNALLSERPEKAIAEAAALEGRRDLDKLPLAGVPVTIKDSVDVAGEPMRLGSLALPDTPREKDDELVRRLRGAGCVVIGKTNQPELAIFHFTESNLGITRNPWNLDRAPGGSSGGAAASVASAMVPIAQGSDGGGSIRLPAAFCGLFGIKPGPGIVPIAGGAEEHWFGMSQWGPLATTVDDAALMLDVLAGTSTYRDVAVPAGRLRLALSVKPPATGVRVNREVRLAVEASADALRSAGHTVTVTDPPYSPEFPLYFLHRFFAGIALEADELDLPTAKLEPRTQRMVRIGRYLNRYRPVPRDGTRRLYQRFESWFQDYDVLLTPSTAQPSVPAGGWLGKSYITTLLTATSQVPFTQAANLLNLPAASIPAGLTVDGLPIGLQLVAARGGEALLLSLAKQLEQLSPWPRHAPMAEIEGEHPAAADLGDSGLRRWFAGSRP
90% identity cluster

46 sequences (46 metagenome)

Where its members were sampled

Soil 85%Other environmental 7%Extreme 4%Sediment 4%
Cupredoxins - blue copper704 aa
ORF
641092691
Catalytic residues
H, C, H
IREIPHRVPPTYQPPHAHRRYIDKPLFRVKQGRSEGAREFIGIAPQKRFPRDGCVSPRGVASFTVADSPTRAKRAEGDVRPASSEGSMRSFSVIPLLALVLAGPHLDDPERVHINDNRRPAGVLEHGVLILRLDARLGTWYPDGDDAPGGVVEAFAEAGHQPQIPGPLIRVQAGTTVTLSLHNAIAGATLIVHGLGPHPSPVPDTLQIAPGETRSIRFRLDAPGTYAYWGTTTGSALDRRIREDAQLSGAIVVDPPGAVPTDRVFVIGMWADSLIRSSRELLVINGSSWPHTERLGYTVGDTIRWRVLNLSAENHPMHLHGFYYRLERRGDGNGDTTYAAGQGALEVTERMIVGETMVMTWVADRAGNWLFHCHVPRHIMARGSLGASLTLDPSRVGADTAMMGMNGLAVGVTIRRRNGLAAQSPVTPPSPHRRLRLLVRETGGTSAGQRFYEYALQEGSTEPPLDSGYRQGPPIVLTRGEPVAITIVNRTREPTSVHWHGIELESYFDGLPGWSGDSTRIEPPIAPGDSFEARFTPPRAGTFIYHTHMNEMHQERAGLAGALLVLNPGVRWDPATDVVMLITTATNADPFGVSRSMLLNGDPAPPPREWRQGVTYRIRFIGMRVGPPTTRLELWRDSSLAEWRVVAKDGAELPPRAQVTTPARGFVATGETEDVEVTPRSPGQLRLEARATGGIAVQLIRVRK
90% identity cluster

11 sequences (11 metagenome)

Where its members were sampled

Soil 100%
L-amino peptidase D-ALA esterase/amidase490 aa
ORF
641091714
Catalytic residues
T
RRAARAEEDRARRVDRREPVVVERERQREVPVGFPAIRCERDRVAHHARAVHPPVALERVTETADRAHPAHRSVPDVLHVALRRGPAVHARRTPRLQLVHVGRGAYGRRARAIDRRDRAVRLADHAPGDPAEPARRRLDDAHRERRRDCGIDGVPAVPEDPGPGFGREGVLCGDHRAGRDGLALLDVPFAARRHRQDGGRLAHVTLPAGFTAGHWTDPVALTGCTVILCDGAATAGVHMGGGAPATIQTDIIGPASATGILHAVLLTGGSAFGLAAYGGVMRFLEEGGVGVAVRDWRVPHVAGAVIFDLATGDGRVRPDAAAGYAACQMATAAPAEGLVGAGTGGTTAKMQGGRAPGGLGIASARAGAATVTAIMVVNALGDIWDGERNEWAARSAPAAQPPQPGNTTIGAVLTDAKLGREAVRRVAMTAHDGLGRAIRPAHTDFDGDTIFALAHGEQEADPVEVQMAAAEAVEKAIVRAVRLSSGTMKT
90% identity cluster

58 sequences (57 metagenome, 1 NCBI)

Where its members were sampled

Soil 92%Other environmental 4%Plant-associated 2%Sediment 2%
Arylesterase273 aa
ORF
641090765
Catalytic residues
S, D, H
GLTGRLGDRVLLNRAVTRREMRSLTRNGMLSVLGTTILVGACTTWGMTGGMTNVTPGSEGTPAPTGSSEPTGSLATRYVALGDSYTIGTSVGESERWPNQLSERVSGLRLVANLGVNGFTSADTIDVELPRLDALDPKLVSLLVGVNDVVQGVSSETYRRNVEAILDDLVARVGASRVFVVTTPDYTVTPAGADYGDPARQGAAIRADNRILADAATARGVAVVDIHDISLRAGSERGLVAGDGLHPSGEQYRLWVDRIAPVVTRLLSESASR
90% identity cluster

3 sequences (3 metagenome)

Where its members were sampled

Soil 100%
Uridase-like185 aa
ORF
641091062
Catalytic residues
E, H, W
RRGDRPVRQSGVVERDEGALPAGLRGDGAAGVIPEPVRARDLVGYGRTPPRFSWPDDARVVINLVLVYEEGSEYSVLWGDDRNDGWGEYADPGVQPPHRDPGTESHYEYGSRAGVWRLARIFDAADVPVTVSAAAVALELNPGVAGWMRERGHDLMGHGWRWIEPWTMSREQEREQIARAVETYE
90% identity cluster

7 sequences (5 metagenome, 2 NCBI)

Where its members were sampled

Soil 100%
Trypsin-like283 aa
ORF
641091224 · cluster representative
Catalytic residues
H, D, S
EAAPARQYANALAQAPWPKRRPSMRRLPLVLSAAMLLAAALASPVAAISYGQIDSQNTYANTGALIDQFTEGKYLVCSGTLIAPKVFLTAAHCVDEGQAVWVSFDLHINEPVTAQTNTIYSGTAHPHPSAYCRSCGQSDPNDVAVVVLDDAVQGIAPALLPTENLLSQMSNQALKSANFVAAGYGTVRDVKQKAGQSLYWDPTRRWAHQTVNSLEPAWLNLSMNVSTGNGGTCYGDSGGPHFLGAVVVAVTVTGDAQCKAADKDYRIDTPQARAFLANYLSLP
90% identity cluster

1 sequences (1 metagenome)

Where its members were sampled

Soil 100%

Showing 8 of 934: the longest of each catalytic domain type.

Known rule defects

Building the interactive chart turned up four defects in the profile rules. They are not yet fixed. Together they affect about 1.5% of profiled BioSamples, and the samples-to-clusters flip does not depend on any of them. Fixing them means re-running the profile build and the propagation, after which every number shifts slightly.

  1. Coral is read as oral. The pattern for oral metagenome has no word boundary, so it also matches coral metagenome. About 2,035 coral-reef BioSamples are labelled Human oral.
  2. Salmonella is read as salmon. One rule reads the species field, and the animal-host term salmo matches Salmonella. About 4,800 human, stool samples become Animal gut. This also breaks our own rule that species never decides a profile.
  3. Body-site rules do not check the host. At least 30,682 animal samples carry human labels, such as bovine faeces, dog urine and cattle respiratory samples.
  4. A bare "metagenome" label wins. A metagenome label of just "metagenome" hits the Other environmental catch-all before more specific fields, such as env_medium = lake sediment, are read. Lake Baikal sample SAMN17126602, which states 0 psu, is profiled Other environmental.

Other limitations

  • Half the samples are unprofiled. 50.6% of BioSamples carry no environment signal, so profiled data leans toward well-described studies.
  • The temperature check is small. ε² = 0.044. The temperature estimate also tops out near 37 °C, because BacDive's recorded optimum is often an incubator setting, so host profiles pile up there.
  • The popup's explanation is a reading, not a measurement. That low-ratio profiles are isolates of the same few organisms sequenced again and again fits the one human stool isolate we inspected, whose 13 sequences all sit in clusters of about 33,000. We have not measured the isolate share per profile.
[1]
T. Barrett et al., “BioProject and BioSample databases at NCBI: facilitating capture and organization of metadata,” Nucleic Acids Research, vol. 40, no. D1, pp. D57–D63, 2012, doi: 10.1093/nar/gkr1163.