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
ba09efe0
Commit
ba09efe0
authored
7 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
adding cnvkit
parent
15a6a639
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/starfusion.sh
+34
-5
34 additions, 5 deletions
alignment/starfusion.sh
cnvkit.sh
+38
-0
38 additions, 0 deletions
cnvkit.sh
with
72 additions
and
5 deletions
alignment/starfusion.sh
+
34
−
5
View file @
ba09efe0
#!/bin/bash
#trimgalore.sh
pair_id
=
$1
index_path
=
$2
fq1
=
$3
fq2
=
$4
usage
()
{
echo
"-h Help documentation for hisat.sh"
echo
"-r --Reference Genome: GRCh38 or GRCm38"
echo
"-a --FastQ R1"
echo
"-b --FastQ R2"
echo
"-p --Prefix for output file name"
echo
"Example: bash hisat.sh -p prefix -r GRCh38 -a SRR1551047_1.fastq.gz -b SRR1551047_2.fastq.gz"
exit
1
}
OPTIND
=
1
# Reset OPTIND
while
getopts
:r:a:b:p:h opt
do
case
$opt
in
r
)
refgeno
=
$OPTARG
;;
a
)
fq1
=
$OPTARG
;;
b
)
fq2
=
$OPTARG
;;
p
)
pair_id
=
$OPTARG
;;
h
)
usage
;;
esac
done
shift
$((
$OPTIND
-
1
))
# Check for mandatory options
if
[[
-z
$pair_id
]]
||
[[
-z
$fq1
]]
;
then
usage
fi
if
[
$refgeno
==
'GRCh38'
]
||
[
$refgeno
==
'GRCm38'
]
;
then
index_path
=
/project/shared/bicf_workflow_ref/
${
refgeno
}
/CTAT_lib/
else
usage
fi
module add python/2.7.x-anaconda star/2.5.2b
STAR-Fusion
--genome_lib_dir
${
index_path
}
/CTAT_lib/
--left_fq
${
fq1
}
--right_fq
${
fq2
}
--output_dir
star_fusion &> star_fusion.err
STAR-Fusion
--genome_lib_dir
${
index_path
}
--left_fq
${
fq1
}
--right_fq
${
fq2
}
--output_dir
star_fusion &> star_fusion.err
mv
star_fusion/star-fusion.fusion_candidates.final.abridged
${
pair_id
}
.starfusion.txt
This diff is collapsed.
Click to expand it.
cnvkit.sh
0 → 100644
+
38
−
0
View file @
ba09efe0
#!/bin/bash
#cnvkit.sh
usage
()
{
echo
"-h --Help documentation for markdups.sh"
echo
"-b --BAM file"
echo
"-p --Prefix for output file name"
echo
"Example: bash cnvkit.sh -p prefix -b file.bam"
exit
1
}
OPTIND
=
1
# Reset OPTIND
while
getopts
:b:p:h opt
do
case
$opt
in
b
)
sbam
=
$OPTARG
;;
p
)
pair_id
=
$OPTARG
;;
h
)
usage
;;
esac
done
shift
$((
$OPTIND
-
1
))
# Check for mandatory options
if
[[
-z
$pair_id
]]
||
[[
-z
$sbam
]]
;
then
usage
fi
if
[[
-z
$SLURM_CPUS_ON_NODE
]]
then
SLURM_CPUS_ON_NODE
=
1
fi
module load cnvkit/0.9.0
cnvkit.py coverage
${
sbam
}
/project/shared/bicf_workflow_ref/GRCh38/UTSWV2.cnvkit_targets.bed
-o
${
pair_id
}
.targetcoverage.cnn
cnvkit.py coverage
${
sbam
}
/project/shared/bicf_workflow_ref/GRCh38/UTSWV2.cnvkit_antitargets.bed
-o
${
pair_id
}
.antitargetcoverage.cnn
cnvkit.py fix
${
pair_id
}
.targetcoverage.cnn
${
pair_id
}
.antitargetcoverage.cnn /project/shared/bicf_workflow_ref/GRCh38/UTSWV2.normals.cnn
-o
${
pair_id
}
.cnr
cnvkit.py segment
${
pair_id
}
.cnr
-o
${
pair_id
}
.cns
cnvkit.py call
${
pair_id
}
.cns
-o
${
pair_id
}
.call.cns
cnvkit.py diagram
${
pair_id
}
.cnr
-s
${
pair_id
}
.cns
-o
${
pair_id
}
.pdf
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