deconseq_for_decontaminating_reads
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| deconseq_for_decontaminating_reads [2017/08/22 11:11] – cgeb2001 | deconseq_for_decontaminating_reads [2018/06/28 15:58] (current) – 134.190.133.209 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | **DECONSEQ** | + | ====== |
| Documentation by Sarah Shah, Shelby Williams | Documentation by Sarah Shah, Shelby Williams | ||
| - | Source: [[http:// | + | Source: [[http:// |
| + | |||
| + | Warning: If your read file is above 4GB, you must split it. Deconseq' | ||
| + | |||
| + | This can be used to decontaminate reads using a database of your suspected contaminant sequences. To start, create a fasta file with genomes of suspected contaminates. I recommend using this for fine-combing through data that doesn' | ||
| + | |||
| + | 1. Make a bwa index of your contamination fasta file by: | ||
| + | < | ||
| + | bwa64 index -p prefix_of_your_choice_for_bacteria_index -a bwtsw fasta_file_of_your_suspected_bacteria >bwa.log 2>&1 & | ||
| + | </ | ||
| + | |||
| + | You can check the status of your bwa index by using "tail -f bwa.log" | ||
| + | |||
| + | 2. Move the 8 index files to the folder " | ||
| + | |||
| + | 3a. Edit the config file (DeconSeqConfig.pm) as such: | ||
| + | < | ||
| + | ' | ||
| + | db => ' | ||
| + | </ | ||
| + | |||
| + | 3b. Also edit the following lines in the config file: | ||
| + | < | ||
| + | use constant DB_DIR => '/ | ||
| + | use constant PROG_DIR => '/ | ||
| + | </ | ||
| + | |||
| + | This is because of a bug (see https:// | ||
| + | |||
| + | 4. Write a shell script (example below) and qsub it. | ||
| + | < | ||
| + | #!/bin/sh | ||
| + | #$ -S /bin/sh | ||
| + | . / | ||
| + | #$ -cwd | ||
| + | |||
| + | perl deconseq.pl -f Read_file_to_decontaminate.fastq -dbs prefix_of_bacteria_index -out_dir outfolder -keep_tmp_files -i 85 -id testdeconseq | ||
| + | </ | ||
| + | |||
| + | The " | ||
| + | |||
| + | 5. Your shell script' | ||
| - | This can be used to decontaminate | + | 6. Your output folder should have: one " |
deconseq_for_decontaminating_reads.1503411089.txt.gz · Last modified: by cgeb2001
