annotate SeqSero2/README.md @ 3:b18e8cdfdf81

planemo upload
author jpayne
date Tue, 13 Nov 2018 16:18:17 -0500
parents fae43708974d
children 87c7eebc6797
rev   line source
jpayne@1 1 # SeqSero2 alpha-test version
jpayne@1 2 Salmonella serotyping from genome sequencing data
jpayne@1 3
jpayne@1 4
jpayne@1 5 # Introduction
jpayne@1 6 SeqSero2 is a pipeline for Salmonella serotype determination from raw sequencing reads or genome assemblies. This is a alpha test version. A web app will be available soon.
jpayne@1 7
jpayne@1 8
jpayne@1 9 # Dependencies
jpayne@1 10 SeqSero has two modes:
jpayne@1 11
jpayne@1 12
jpayne@1 13 (A) k-mer based mode (default), which applies unique k-mers of serotype determinant alleles to determine Salmonella serotypes in a fast speed. Special thanks to Dr. Hendrik Den Bakker for his significant contribution to this mode, details can be found in [SeqSeroK](https://github.com/hcdenbakker/SeqSeroK) and [SalmID](https://github.com/hcdenbakker/SalmID).
jpayne@1 14
jpayne@1 15 K-mer mode is a independant pipeline, it only requires:
jpayne@1 16
jpayne@1 17 1. Python 3;
jpayne@1 18 2. [SRA Toolkit](http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?cmd=show&f=software&m=software&s=software) (optional, just used to fastq-dump sra files);
jpayne@1 19
jpayne@1 20
jpayne@1 21 (B) allele based mode (if users want to extract serotype determinant alleles), which applies a hybrid approach of reads-mapping and micro-assembly.
jpayne@1 22
jpayne@1 23 Allele mode depends on:
jpayne@1 24
jpayne@1 25 1. Python 3;
jpayne@1 26
jpayne@1 27 2. [Burrows-Wheeler Aligner](http://sourceforge.net/projects/bio-bwa/files/);
jpayne@1 28
jpayne@1 29 3. [Samtools](http://sourceforge.net/projects/samtools/files/samtools/);
jpayne@1 30
jpayne@1 31 4. [NCBI BLAST](https://blast.ncbi.nlm.nih.gov/Blast.cgi?PAGE_TYPE=BlastDocs&DOC_TYPE=Download);
jpayne@1 32
jpayne@1 33 5. [SRA Toolkit](http://www.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?cmd=show&f=software&m=software&s=software);
jpayne@1 34
jpayne@1 35 6. [SPAdes](http://bioinf.spbau.ru/spades);
jpayne@1 36
jpayne@1 37 7. [Bedtools](http://bedtools.readthedocs.io/en/latest/);
jpayne@1 38
jpayne@1 39 8. [SalmID](https://github.com/hcdenbakker/SalmID).
jpayne@1 40
jpayne@1 41
jpayne@1 42 # Executing the code
jpayne@1 43 Make sure all SeqSero2 and its dependency executables are added to your path (e.g. to ~/.bashrc). Then type SeqSero2_package.py to get detailed instructions.
jpayne@1 44
jpayne@1 45 Usage: SeqSero2_package.py
jpayne@1 46
jpayne@1 47 -m <string> (which mode to apply, 'k'(kmer mode), 'a'(allele mode), default=k)
jpayne@1 48
jpayne@1 49 -t <string> (input data type, '1' for interleaved paired-end reads, '2' for separated paired-end reads, '3' for single reads, '4' for genome assembly, '5' for nanopore fasta, '6'for nanopore fastq)
jpayne@1 50
jpayne@1 51 -i <file> (/path/to/input/file)
jpayne@1 52
jpayne@1 53 -p <int> (number of threads for allele mode, if p >4, only 4 threads will be used for assembly since the amount of extracted reads is small, default=1)
jpayne@1 54
jpayne@1 55 -b <string> (algorithms for bwa mapping for allele mode; 'mem' for mem, 'sam' for samse/sampe; default=mem; optional; for now we only optimized for default "mem" mode)
jpayne@1 56
jpayne@1 57 -d <string> (output directory name, if not set, the output directory would be 'SeqSero_result_'+time stamp+one random number)
jpayne@1 58
jpayne@1 59 -c <flag> (if '-c' was flagged, SeqSero2 will use clean mode and only output serotyping prediction without the directory containing log files)
jpayne@1 60
jpayne@1 61
jpayne@1 62 # Examples
jpayne@1 63 K-mer mode:
jpayne@1 64
jpayne@1 65 # K-mer (default), for separated paired-end raw reads ("-t 2")
jpayne@1 66 SeqSero2_package.py -t 2 -i R1.fastq.gz R2.fastq.gz
jpayne@1 67
jpayne@1 68 # K-mer (default), for assemblies ("-t 4", assembly only predcited by K-mer mode)
jpayne@1 69 SeqSero2_package.py -t 4 -i assembly.fasta
jpayne@1 70
jpayne@1 71 Allele mode:
jpayne@1 72
jpayne@1 73 # Allele mode ("-m a"), for separated paired-end raw reads ("-t 2"), use 10 threads in mapping and assembly ("-p 10")
jpayne@1 74 SeqSero2_package.py -m a -p 10 -t 2 -i R1.fastq.gz R2.fastq.gz
jpayne@1 75
jpayne@1 76
jpayne@1 77 # Output
jpayne@1 78 Upon executing the command, a directory named 'SeqSero_result_Time_your_run' will be created. Your result will be stored in 'Seqsero_result.txt' in that directory. And the assembled alleles can also be found in the directory if using "-m a" (allele mode).
jpayne@1 79
jpayne@1 80
jpayne@1 81 # Citation
jpayne@1 82 Zhang S, Yin Y, Jones MB, Zhang Z, Deatherage Kaiser BL, Dinsmore BA, Fitzgerald C, Fields PI, Deng X.
jpayne@1 83 Salmonella serotype determination utilizing high-throughput genome sequencing data.
jpayne@1 84 **J Clin Microbiol.** 2015 May;53(5):1685-92.[PMID:25762776](http://jcm.asm.org/content/early/2015/03/05/JCM.00323-15)