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
3a28f5f8
Commit
3a28f5f8
authored
6 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
update typo bamqc.sh
parent
79dc4690
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alignment/add_umi_sam.py
+2
-0
2 additions, 0 deletions
alignment/add_umi_sam.py
alignment/bamqc.sh
+1
-2
1 addition, 2 deletions
alignment/bamqc.sh
with
3 additions
and
2 deletions
alignment/add_umi_sam.py
+
2
−
0
View file @
3a28f5f8
...
@@ -18,6 +18,7 @@ def get_args():
...
@@ -18,6 +18,7 @@ def get_args():
return
args
return
args
# set the tag names - take a look at SAM spec to pick an appropriate one
# set the tag names - take a look at SAM spec to pick an appropriate one
args
=
get_args
()
args
=
get_args
()
infile
=
pysam
.
AlignmentFile
(
args
.
sam
,
"
r
"
)
infile
=
pysam
.
AlignmentFile
(
args
.
sam
,
"
r
"
)
out
=
pysam
.
AlignmentFile
(
args
.
out
,
"
wb
"
,
template
=
infile
)
out
=
pysam
.
AlignmentFile
(
args
.
out
,
"
wb
"
,
template
=
infile
)
...
@@ -25,5 +26,6 @@ for read in infile.fetch():
...
@@ -25,5 +26,6 @@ for read in infile.fetch():
read
.
set_tag
(
'
RX
'
,
read
.
qname
.
split
(
"
:
"
)[
-
1
])
read
.
set_tag
(
'
RX
'
,
read
.
qname
.
split
(
"
:
"
)[
-
1
])
out
.
write
(
read
)
out
.
write
(
read
)
infile
.
close
()
infile
.
close
()
out
.
close
()
out
.
close
()
This diff is collapsed.
Click to expand it.
alignment/bamqc.sh
+
1
−
2
View file @
3a28f5f8
...
@@ -46,7 +46,6 @@ if [[ $nuctype == 'dna' ]]; then
...
@@ -46,7 +46,6 @@ if [[ $nuctype == 'dna' ]]; then
module load bedtools/2.26.0 picard/2.10.3
module load bedtools/2.26.0 picard/2.10.3
samtools view -@
$SLURM_CPUS_ON_NODE
-b
-L
${
bed
}
-o
${
pair_id
}
.ontarget.bam
${
sbam
}
samtools view -@
$SLURM_CPUS_ON_NODE
-b
-L
${
bed
}
-o
${
pair_id
}
.ontarget.bam
${
sbam
}
samtools index -@
$SLURM_CPUS_ON_NODE
${
pair_id
}
.ontarget.bam
samtools index -@
$SLURM_CPUS_ON_NODE
${
pair_id
}
.ontarget.bam
#samtools flagstat ${pair_id}.ontarget.bam > ${pair_id}.ontarget.flagstat.txt
java
-Xmx64g
-jar
$PICARD
/picard.jar CollectInsertSizeMetrics
INPUT
=
${
sbam
}
HISTOGRAM_FILE
=
${
pair_id
}
.hist.ps
REFERENCE_SEQUENCE
=
${
index_path
}
/genome.fa
OUTPUT
=
${
pair_id
}
.hist.txt
java
-Xmx64g
-jar
$PICARD
/picard.jar CollectInsertSizeMetrics
INPUT
=
${
sbam
}
HISTOGRAM_FILE
=
${
pair_id
}
.hist.ps
REFERENCE_SEQUENCE
=
${
index_path
}
/genome.fa
OUTPUT
=
${
pair_id
}
.hist.txt
java
-Xmx64g
-jar
$PICARD
/picard.jar CollectAlignmentSummaryMetrics
R
=
${
index_path
}
/genome.fa
I
=
${
pair_id
}
.ontarget.bam
OUTPUT
=
${
pair_id
}
.alignmentsummarymetrics.txt
java
-Xmx64g
-jar
$PICARD
/picard.jar CollectAlignmentSummaryMetrics
R
=
${
index_path
}
/genome.fa
I
=
${
pair_id
}
.ontarget.bam
OUTPUT
=
${
pair_id
}
.alignmentsummarymetrics.txt
java
-Xmx64g
-jar
$PICARD
/picard.jar EstimateLibraryComplexity
I
=
${
sbam
}
OUTPUT
=
${
pair_id
}
.libcomplex.txt
java
-Xmx64g
-jar
$PICARD
/picard.jar EstimateLibraryComplexity
I
=
${
sbam
}
OUTPUT
=
${
pair_id
}
.libcomplex.txt
...
@@ -55,4 +54,4 @@ if [[ $nuctype == 'dna' ]]; then
...
@@ -55,4 +54,4 @@ if [[ $nuctype == 'dna' ]]; then
grep
^all
${
pair_id
}
.covhist.txt
>
${
pair_id
}
.genomecov.txt
grep
^all
${
pair_id
}
.covhist.txt
>
${
pair_id
}
.genomecov.txt
samtools view -@
$SLURM_CPUS_ON_NODE
${
sbam
}
|
awk
'{sum+=$5} END { print "Mean MAPQ =",sum/NR}'
>
${
pair_id
}
.meanmap.txt
samtools view -@
$SLURM_CPUS_ON_NODE
${
sbam
}
|
awk
'{sum+=$5} END { print "Mean MAPQ =",sum/NR}'
>
${
pair_id
}
.meanmap.txt
perl
$baseDir
/calculate_depthcov.pl
${
pair_id
}
.covhist.txt
perl
$baseDir
/calculate_depthcov.pl
${
pair_id
}
.covhist.txt
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