Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid rarefaction depth for source data #137

Open
Chenjw99 opened this issue Apr 6, 2021 · 2 comments
Open

Invalid rarefaction depth for source data #137

Chenjw99 opened this issue Apr 6, 2021 · 2 comments

Comments

@Chenjw99
Copy link

Chenjw99 commented Apr 6, 2021

Hi,SourceTracker team,
I used my otu_table and the corresponding map-file to run the code
sourcetracker2 gibbs -i otu_table.biom -m map-file.txt -o try1/
And an error raised:
ValueError: Invalid rarefaction depth for source data. There are not enough sequences in at least one collapsed source.
Then I reset the sampling-depth using Qiime2,but same error occurred.
I'm wondering that under what circumstances the error would raise so that I can find the problem.
Thanks.

@HBai-ong
Copy link

Hi, have you solved this problem yet? I am also troubled by this problem.

@Chenjw99
Copy link
Author

Yes.The guideline mentioned that
"Rarefaction is performed by default at 1000 seqs/sample for both sinks and sources. This is done to prevent samples with more counts from dominating the contributions. Rarefaction depth can be set (or entirely disabled) with the --source_rarefaction_depth and --sink_rarefaction_depth parameters."
It means that if you did not set the depth manually,the default value of sink and source rarefaction depth are both 1000.Just check your OTU table,if there is any sample has a sum count of OTU less than 1000?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants