caporaso-lab / sourcetracker2

SourceTracker2
BSD 3-Clause "New" or "Revised" License
60 stars 45 forks source link

list of OTUs attributable to different sources #126

Open ctekellogg opened 4 years ago

ctekellogg commented 4 years ago

Hello, I was wondering if there is a way to get a list of OTUs that are attributable to each source? I was thinking that perhaps this could come from the feature_table.txt files when passing the --per_sink_feature_assignments option. However, this spits out a table for each sample, so I would need to open each file individually to determine across the whole dataset which OTUs are from Source A and which are from Source B and so on. Hopefully this question is making some sort of sense. I was trying to read all of the feature_table.txt files into R, but the fact that they are missing a value for [1,1] seems to be making this challenging when trying to load them in via a for loop or lapply followed by rbind.

Thank you for any help! Colleen