*`short_read_connector` must have been downloaded and installed (clustering task). [https://github.com/GATB/short_read_connector](https://github.com/GATB/short_read_connector)
**absolute** path to short_read_connector directory, containing the "short_read_connector.sh" file.
-S|--src [src_path]
performs clustering of variants with short_read_connector
src_path: **absolute** path to short_read_connector directory, containing the "short_read_connector.sh" file.
-Note1: short read connector must be compiled.
-Note2: with this option, discoSnpRad provide a vcf file containing SNPs and INDELS, clustered by locus
-Note2: if no value is given, it assumes short_read_connector.sh is in the PATH env variable.
-Note3: with this option, discoSnpRad outputs a vcf file containing the variants clustered by locus.
```
All other options are described in [discoSnp++ README](../README.md). Note that many discoSNP++ parameters have here default values, specifically adapted to RAD-seq data.
@@ -39,8 +42,33 @@ To see all options:
## Output
* a log file reminds all filtering steps applied and the name of the output .vcf file
* a vcf file containing results of filtering and clustering
When run with output prefix name `myDiscoSnpRADresult`, the main output file is :
*`myDiscoSnpRADresult_[parameter_values]_clustered.vcf`: the final set of variants, with various information, including clustering per locus information (see VCF format below).
* or `myDiscoSnpRADresult_[parameter_values].vcf` if no clustering was performed.
Additionnally, several other files are output that can be usefull :
*`myDiscoSnpRADresult_[parameter_values]_raw.fa`: the raw set of variants in fasta format, prior to any filtering and clustering steps.
*`myDiscoSnpRADresult_[graph_parameter_values].h5`: the de Bruijn graph in h5 format (reusable with any GATB tool)
*`myDiscoSnpRADresult_read_files_correspondance.txt`: the correspondence between read file names and IDs given as genotypes in the vcf
* the standard output reminds all filtering steps applied and the name of the output .vcf file
#### VCF format
Each variant is described with:
* an ID: `ID` column,
* two alleles (`REF` and `ALT` columns),
* a quality value: `INFO` column, `Rk`, between 0 (bad) and 1 (best),
* some clustering information: `INFO` field: with the locus id (`Cluster`) and its number of varying sites (`ClSize`),
* and for each sample in the genotype columns (`G1`, `G2`,...): the inferred genotype (`0/0`, `0/1`, `1/1`or `./.`for missing value), the read depths (`RD` total, `AD`per allele), among others.
#EDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
@@ -106,17 +107,19 @@ function help {
echo" ************"
echo"run_discoSnpRad.sh, pipelining kissnp2 and kissreads and clustering per locus for calling SNPs and small indels from RAD-seq data without the need of a reference genome"
echo-e"\t -r|--fof <file name of a file of file(s)>"
echo-e"\t\t The input read files indicated in a file of file(s)"
echo-e"\t\t Example: -r bank.fof with bank.fof containing the two lines \n\t\t\t data_sample/reads_sequence1.fasta\n\t\t\t data_sample/reads_sequence2.fasta.gz"
echo-e"\nOPTIONS"
echo-e"\t -S|--src_path <directory>"
echo-e"\t\t **absolute** path to short_read_connector directory, containing the \"short_read_connector.sh\" file. "
echo-e"\t -S|--src [src_path]"
echo-e"\t\t performs clustering of variants with short_read_connector"
echo-e"\t\t src_path: **absolute** path to short_read_connector directory, containing the \"short_read_connector.sh\" file. "
echo-e"\t\t -Note1: short read connector must be compiled."
echo-e"\t\t -Note2: with this option, discoSnpRad provide a vcf file containing SNPs and INDELS, clustered by locus"
echo-e"\t\t -Note2: if no value is given, it assumes short_read_connector.sh is in the PATH env variable."
echo-e"\t\t -Note3: with this option, discoSnpRad outputs a vcf file containing the variants clustered by locus"
echo-e"\t -k | --k_size value <int value>"
echo-e"\t\t Set the length of used kmers. Must fit the compiled value."
@@ -184,15 +187,13 @@ while :; do
-w)
wraith="true"
;;
-S|--src_path)
-S|--src)
clustering="true"
if["$2"]&&[${2:0:1}!="-"];then# checks that there exists a second value and its is not the start of the next option
short_read_connector_path=$2
shift
else
die 'ERROR: "'$1'" option requires a non-empty option argument.'
fi
;;
-a|--ambiguity_max_size)
if["$2"]&&[${2:0:1}!="-"];then# checks that there exists a second value and its is not the start of the next option
max_ambigous_indel=$2
@@ -379,29 +380,42 @@ if [ -z "$read_sets" ]; then