Hi,
Thanks for the tip. But, I run into a problem when I try to do this.
Here is what happens:
qiime@linux:~/Desktop/Shared_Folder/Bill/CDEBI/90% clustering/
neg_otu_removed_analysis$ filter_fasta.py -f denoised_seqs.fna -o
denoised_seqs_neg_97_otu_removed.txt -m
denoised_97_otu_map_neg_otu_removed.txt
Traceback (most recent call last):
File "/software/qiime-1.4.0-release/bin/filter_fasta.py", line 137,
in <module>
main()
File "/software/qiime-1.4.0-release/bin/filter_fasta.py", line 134,
in main
negate)
File "/software/qiime-1.4.0-release/bin/filter_fasta.py", line 66,
in filter_fasta_fp
return filter_fasta(input_seqs,output_f,seqs_to_keep,negate)
File "/software/qiime-1.4.0-release/lib/qiime/filter.py", line 35,
in filter_fasta
for seq_id in seqs_to_keep])
IndexError: list index out of range
Any ideas about what the "list index out of range" means?
Thanks
Bill
On Mar 21, 4:53 pm, Tony Walters <
william.a.walt...@gmail.com> wrote:
> Another possibility would be to create a copy of your OTU mapping file
> (output from pick_otus.py), remove the OTU ids (and the sequences mapped to
> them) in question, and pass this file with the -m option to the
> filter_fasta.py script that Greg mentioned (
http://qiime.org/scripts/filter_fasta.html).
>
> On Wed, Mar 21, 2012 at 2:50 PM, Greg Caporaso <
gregcapor...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Hi Bill,
> > The filter_fasta.py script might get you what you need. You can pass a
> > list of sequences that you'd like to remove in a text file, one per
> > line, along with the fasta file. The output will be a new fasta file
> > not including those sequences.
>
> > Greg
>
> > On Wed, Mar 21, 2012 at 12:45 PM, William Orsi <
william.o...@gmail.com>