Sub sampling from pyrosequencing reads
1
0
Entering edit mode
10.0 years ago
Sandy • 0

I have a pyrosequencing reads from almost 200 samples, obviously in one .fna file. I want to do subsampling from there in a way to have equal no. of sequence (randomly) from each sample. Does any one know any script/ programme to do that.

next-gen • 2.1k views
ADD COMMENT
1
Entering edit mode
10.0 years ago
Prakki Rama ★ 2.7k

This Biostar post should be useful to you.

ADD COMMENT
0
Entering edit mode

Thanks Prakki Rama, But I was also wondering that, does this give me the equal no of sequences from each sample ?

ADD REPLY
1
Entering edit mode

Yes. It generated random number of sequences equally in all my files. I ran the following to get multiple files in shell.

for((n=1; n<=10; n=n+1)); do sh subsample_se_fasta.sh sample.Seq.fa s_sub_"$n".fasta 10; done
ADD REPLY
0
Entering edit mode

Thanks for your quick response.

ADD REPLY
0
Entering edit mode

Actually I have .fna file and I want to subsample it before picking OTU from there.

ADD REPLY

Login before adding your answer.

Traffic: 2442 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6