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/24 05:39] – 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 | ||
| Line 7: | Line 8: | ||
| Warning: If your read file is above 4GB, you must split it. Deconseq' | 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. I recommend using this for fine-combing through data that doesn' | + | 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 by: | + | 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 & | ||
| + | </ | ||
| - | **bwa64 | + | You can check the status of your bwa index by using " |
| 2. Move the 8 index files to the folder " | 2. Move the 8 index files to the folder " | ||
| - | 3. Edit the config file (DeconSeqConfig.pm) as such: | + | 3a. Edit the config file (DeconSeqConfig.pm) as such: |
| + | < | ||
| + | ' | ||
| + | db => ' | ||
| + | </ | ||
| - | **bact => {name => 'Nameofyourchoice', | + | 3b. Also edit the following lines in the config file: |
| + | <code> | ||
| + | use constant DB_DIR | ||
| + | use constant PROG_DIR | ||
| + | </ | ||
| - | Do not edit anything else. | + | This is because of a bug (see https:// |
| 4. Write a shell script (example below) and qsub it. | 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 |
| - | + | </ | |
| - | **#$ -S /bin/sh** | + | |
| - | + | ||
| - | **. / | + | |
| - | + | ||
| - | **#$ -cwd** | + | |
| - | + | ||
| - | **perl deconseq.pl -f Blasto_filtered.fastq -dbs bact -out_dir outfolder -keep_tmp_files -i 85 -id testdeconseq** | + | |
| - | The " | + | The " |
| 5. Your shell script' | 5. Your shell script' | ||
| 6. Your output folder should have: one " | 6. Your output folder should have: one " | ||
deconseq_for_decontaminating_reads.1503563952.txt.gz · Last modified: by cgeb2001
