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
ba64b4b1
Commit
ba64b4b1
authored
7 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
update umi support rnaseqalign
parent
240f711b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
alignment/rnaseqalign.sh
+8
-7
8 additions, 7 deletions
alignment/rnaseqalign.sh
with
8 additions
and
7 deletions
alignment/rnaseqalign.sh
+
8
−
7
View file @
ba64b4b1
...
@@ -34,7 +34,7 @@ if [[ -z $pair_id ]] || [[ -z $fq1 ]]; then
...
@@ -34,7 +34,7 @@ if [[ -z $pair_id ]] || [[ -z $fq1 ]]; then
fi
fi
source
/etc/profile.d/modules.sh
source
/etc/profile.d/modules.sh
module load samtools/
gcc/
1.6 picard/2.10.3
module load samtools/1.6 picard/2.10.3
baseDir
=
"
`
dirname
\"
$0
\"
`
"
baseDir
=
"
`
dirname
\"
$0
\"
`
"
if
[[
-z
$SLURM_CPUS_ON_NODE
]]
if
[[
-z
$SLURM_CPUS_ON_NODE
]]
then
then
...
@@ -59,13 +59,14 @@ else
...
@@ -59,13 +59,14 @@ else
else
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
fi
fi
samtools view
-1
--threads
$SLURM_CPUS_ON_NODE
-o
output.bam out.sam
if
[[
$umi
==
1
]]
fi
then
if
[[
$umi
==
1
]]
python
${
baseDir
}
/add_umi_sam.py
-s
out.sam
-o
output.bam
then
else
python
${
baseDir
}
/add_umi_bam.py
-
b
output.bam
-o
output.unsort2.b
am
samtools view
-1
--threads
$SLURM_CPUS_ON_NODE
-
o
output.bam
out.s
am
mv
output.unsort2.bam output.bam
fi
fi
fi
samtools
sort
-@
$SLURM_CPUS_ON_NODE
-O
BAM
-n
-o
output.nsort.bam output.bam
samtools
sort
-@
$SLURM_CPUS_ON_NODE
-O
BAM
-n
-o
output.nsort.bam output.bam
java
-jar
$PICARD
/picard.jar FixMateInformation
ASSUME_SORTED
=
TRUE
SORT_ORDER
=
coordinate
ADD_MATE_CIGAR
=
TRUE
I
=
output.nsort.bam
O
=
${
pair_id
}
.bam
java
-jar
$PICARD
/picard.jar FixMateInformation
ASSUME_SORTED
=
TRUE
SORT_ORDER
=
coordinate
ADD_MATE_CIGAR
=
TRUE
I
=
output.nsort.bam
O
=
${
pair_id
}
.bam
samtools index -@
$SLURM_CPUS_ON_NODE
${
pair_id
}
.bam
samtools index -@
$SLURM_CPUS_ON_NODE
${
pair_id
}
.bam
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