# fastq files should look like filename_R1.fastq and filename_R2.fastq
# if your fastq files look different, change this value
read1str="_R1"
@@ -92,8 +91,6 @@ genomeHelp="* [genomeID] must be defined in the script, e.g. \"hg19\" or \"mm10\
dirHelp="* [topDir] is the top level directory (default\n\"$topDir\")\n [topDir]/fastq must contain the fastq files\n [topDir]/splits will be created to contain the temporary split files\n [topDir]/aligned will be created for the final alignment"
siteHelp="* [site] must be defined in the script, e.g. \"HindIII\" or \"MboI\"\n (default \"$site\")"
aboutHelp="* [about]: enter description of experiment, enclosed in single quotes"
shortHelp="* -r: use the short read version of the aligner, bwa aln\n (default: long read, bwa mem)"
shortHelp2="* [end]: use the short read aligner on read end, must be one of 1 or 2 "
stageHelp="* [stage]: must be one of \"merge\", \"dedup\", \"final\", \"postproc\", or \"early\".\n -Use \"merge\" when alignment has finished but the merged_sort file has not\n yet been created.\n -Use \"dedup\" when the files have been merged into merged_sort but\n merged_nodups has not yet been created.\n -Use \"final\" when the reads have been deduped into merged_nodups but the\n final stats and hic files have not yet been created.\n -Use \"postproc\" when the hic files have been created and only\n postprocessing feature annotation remains to be completed.\n -Use \"early\" for an early exit, before the final creation of the stats and\n hic files"
pathHelp="* [chrom.sizes path]: enter path for chrom.sizes file"
siteFileHelp="* [restriction site file]: enter path for restriction site file (locations of\n restriction sites in genome; can be generated with the script\n misc/generate_site_positions.py)"
@@ -110,8 +107,6 @@ printHelpAndExit() {
echo-e"$dirHelp"
echo-e"$siteHelp"
echo-e"$aboutHelp"
echo-e"$shortHelp"
echo-e"$shortHelp2"
echo-e"$stageHelp"
echo-e"$pathHelp"
echo-e"$siteFileHelp"
@@ -124,14 +119,12 @@ printHelpAndExit() {
exit"$1"
}
while getopts"d:g:R:a:hrs:p:y:z:S:D:xt:b:" opt;do
while getopts"d:g:a:hs:p:y:z:S:D:xt:b:" opt;do
case$optin
g)genomeID=$OPTARG;;
h) printHelpAndExit 0;;
d)topDir=$OPTARG;;
s)site=$OPTARG;;
R)shortreadend=$OPTARG;;
r)shortread=1 ;;#use short read aligner
a)about=$OPTARG;;
p)genomePath=$OPTARG;;
y)site_file=$OPTARG;;
@@ -215,16 +208,6 @@ then
nofrag=1;
fi
## If short read end is set, make sure it is 1 or 2