Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
process_scripts
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
NGS CLIA Lab
process_scripts
Commits
b54812cf
Commit
b54812cf
authored
7 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
update support single-end
parent
b6d2f689
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alignment/rnaseqalign.sh
+7
-4
7 additions, 4 deletions
alignment/rnaseqalign.sh
preproc_fastq/trimgalore.sh
+5
-5
5 additions, 5 deletions
preproc_fastq/trimgalore.sh
with
12 additions
and
9 deletions
alignment/rnaseqalign.sh
+
7
−
4
View file @
b54812cf
...
@@ -40,9 +40,12 @@ if [[ -z $SLURM_CPUS_ON_NODE ]]
...
@@ -40,9 +40,12 @@ if [[ -z $SLURM_CPUS_ON_NODE ]]
then
then
SLURM_CPUS_ON_NODE
=
1
SLURM_CPUS_ON_NODE
=
1
fi
fi
diff
$fq1
$fq2
>
difffile.out
if
[
$algo
==
'star'
]
if
[
$algo
==
'star'
]
then
then
if
(
$fq1
!=
$fq2
)
if
(
-s
difffile
)
then
then
module load star/2.4.2a
module load star/2.4.2a
STAR
--genomeDir
${
index_path
}
/star_index/
--readFilesIn
$fq1
$fq2
--readFilesCommand
zcat
--genomeLoad
NoSharedMemory
--outFilterMismatchNmax
999
--outFilterMismatchNoverReadLmax
0.04
--outFilterMultimapNmax
20
--alignSJoverhangMin
8
--alignSJDBoverhangMin
1
--alignIntronMin
20
--alignIntronMax
1000000
--alignMatesGapMax
1000000
--outSAMheaderCommentFile
COfile.txt
--outSAMheaderHD
@HD VN:1.4 SO:coordinate
--outSAMunmapped
Within
--outFilterType
BySJout
--outSAMattributes
NH HI AS NM MD
--outSAMstrandField
intronMotif
--outSAMtype
BAM SortedByCoordinate
--quantMode
TranscriptomeSAM
--sjdbScore
1
--limitBAMsortRAM
60000000000
--outFileNamePrefix
out
STAR
--genomeDir
${
index_path
}
/star_index/
--readFilesIn
$fq1
$fq2
--readFilesCommand
zcat
--genomeLoad
NoSharedMemory
--outFilterMismatchNmax
999
--outFilterMismatchNoverReadLmax
0.04
--outFilterMultimapNmax
20
--alignSJoverhangMin
8
--alignSJDBoverhangMin
1
--alignIntronMin
20
--alignIntronMax
1000000
--alignMatesGapMax
1000000
--outSAMheaderCommentFile
COfile.txt
--outSAMheaderHD
@HD VN:1.4 SO:coordinate
--outSAMunmapped
Within
--outFilterType
BySJout
--outSAMattributes
NH HI AS NM MD
--outSAMstrandField
intronMotif
--outSAMtype
BAM SortedByCoordinate
--quantMode
TranscriptomeSAM
--sjdbScore
1
--limitBAMsortRAM
60000000000
--outFileNamePrefix
out
...
@@ -53,11 +56,11 @@ then
...
@@ -53,11 +56,11 @@ then
mv
outAligned.sortedByCoord.out.bam output.bam
mv
outAligned.sortedByCoord.out.bam output.bam
else
else
module load hisat2/2.1.0-intel
module load hisat2/2.1.0-intel
if
[
$fq1
==
$fq2
]
if
[
-s
difffile
]
then
then
hisat2
-p
$SLURM_CPUS_ON_NODE
--rg-id
${
pair_id
}
--rg
LB:tx
--rg
PL:illumina
--rg
PU:barcode
--rg
SM:
${
pair_id
}
--add-chrname
--no-unal
--dta
-x
${
index_path
}
/hisat_index/genome
-U
$fq1
-S
out.sam
--summary-file
${
pair_id
}
.alignerout.txt
else
hisat2
-p
$SLURM_CPUS_ON_NODE
--rg-id
${
pair_id
}
--rg
LB:tx
--rg
PL:illumina
--rg
PU:barcode
--rg
SM:
${
pair_id
}
--add-chrname
--no-unal
--dta
-x
${
index_path
}
/hisat_index/genome
-1
$fq1
-2
$fq2
-S
out.sam
--summary-file
${
pair_id
}
.alignerout.txt
hisat2
-p
$SLURM_CPUS_ON_NODE
--rg-id
${
pair_id
}
--rg
LB:tx
--rg
PL:illumina
--rg
PU:barcode
--rg
SM:
${
pair_id
}
--add-chrname
--no-unal
--dta
-x
${
index_path
}
/hisat_index/genome
-1
$fq1
-2
$fq2
-S
out.sam
--summary-file
${
pair_id
}
.alignerout.txt
else
hisat2
-p
$SLURM_CPUS_ON_NODE
--rg-id
${
pair_id
}
--rg
LB:tx
--rg
PL:illumina
--rg
PU:barcode
--rg
SM:
${
pair_id
}
--add-chrname
--no-unal
--dta
-x
${
index_path
}
/hisat_index/genome
-U
$fq1
-S
out.sam
--summary-file
${
pair_id
}
.alignerout.txt
fi
fi
samtools view
-1
--threads
$SLURM_CPUS_ON_NODE
-o
output.bam out.sam
samtools view
-1
--threads
$SLURM_CPUS_ON_NODE
-o
output.bam out.sam
fi
fi
...
...
This diff is collapsed.
Click to expand it.
preproc_fastq/trimgalore.sh
+
5
−
5
View file @
b54812cf
...
@@ -32,13 +32,13 @@ r2base="${fq2%.fastq*}"
...
@@ -32,13 +32,13 @@ r2base="${fq2%.fastq*}"
source
/etc/profile.d/modules.sh
source
/etc/profile.d/modules.sh
module load trimgalore/0.4.1 cutadapt/1.9.1
module load trimgalore/0.4.1 cutadapt/1.9.1
if
[
$fq1
==
$fq2
]
if
[
-s
$fq2
]
then
then
trim_galore
-q
25
--illumina
--gzip
--length
35
${
fq1
}
mv
${
r1base
}
_trimmed.fq.gz
${
pair_id
}
.trim.R1.fastq.gz
cp
${
pair_id
}
.trim.R1.fastq.gz
${
pair_id
}
.trim.R2.fastq.gz
else
trim_galore
--paired
-q
25
--illumina
--gzip
--length
35
${
fq1
}
${
fq2
}
trim_galore
--paired
-q
25
--illumina
--gzip
--length
35
${
fq1
}
${
fq2
}
mv
${
r1base
}
_val_1.fq.gz
${
pair_id
}
.trim.R1.fastq.gz
mv
${
r1base
}
_val_1.fq.gz
${
pair_id
}
.trim.R1.fastq.gz
mv
${
r2base
}
_val_2.fq.gz
${
pair_id
}
.trim.R2.fastq.gz
mv
${
r2base
}
_val_2.fq.gz
${
pair_id
}
.trim.R2.fastq.gz
else
trim_galore
-q
25
--illumina
--gzip
--length
35
${
fq1
}
mv
${
r1base
}
_trimmed.fq.gz
${
pair_id
}
.trim.R1.fastq.gz
cp
${
pair_id
}
.trim.R1.fastq.gz
${
pair_id
}
.trim.R2.fastq.gz
fi
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment