Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mosaicatcher Update
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Weber
Mosaicatcher Update
Commits
0887883f
Commit
0887883f
authored
7 years ago
by
Sascha Meiers
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/friendsofstrandseq/pipeline
parents
0bf3f2a5
d580c130
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+6
-1
6 additions, 1 deletion
README.md
Snake.config.json
+1
-0
1 addition, 0 deletions
Snake.config.json
Snakefile
+18
-3
18 additions, 3 deletions
Snakefile
with
25 additions
and
4 deletions
README.md
+
6
−
1
View file @
0887883f
...
...
@@ -10,7 +10,12 @@ Preliminary SV calling using Strand-seq data - summarized in a [Snakemake](https
*
Install
[
mosaicatcher
](
https://github.com/friendsofstrandseq/mosaicatcher
)
(
*currently
you will need the
`develop`
branch
*
)
*
Get the R-scripts from
[
strandsequtils
](
https://github.com/friendsofstrandseq/strandsequtils
)
*
Install
[
Strand-Phaser
](
https://github.com/daewoooo/StrandPhaseR
)
*
Install BSgenome.Hsapiens.UCSC.hg38:
```
source("https://bioconductor.org/biocLite.R")
biocLite('BSgenome.Hsapiens.UCSC.hg38')
```
*
[
Strand-Phaser
](
https://github.com/daewoooo/StrandPhaseR
)
is installed automagically
2.
**Set up the configuration of the smakemake pipeline**
...
...
This diff is collapsed.
Click to expand it.
Snake.config.json
+
1
−
0
View file @
0887883f
...
...
@@ -10,6 +10,7 @@
"samtools"
:
"samtools"
,
"bcftools"
:
"bcftools"
,
"snv_calls"
:
""
,
"exclude_file"
:
"/g/korbel/meiers/tools/mosaicatcher/mosaicatcher/data/exclude/hg19.exclude"
,
"variable_bins"
:
{
...
...
This diff is collapsed.
Click to expand it.
Snakefile
+
18
−
3
View file @
0887883f
...
...
@@ -289,13 +289,16 @@ rule prepare_strandphaser_config_per_chrom:
print("bsGenome = '", config["R_reference"], "'", sep = "", file = f)
def locate_snv_vcf(wildcards):
if config["snv_calls"] == "":
return "snv_calls/{}.{}.vcf".format(config["sample"], wildcards.chrom)
else:
return "external_snv_calls/{}.{}.vcf".format(config["sample"], wildcards.chrom)
rule run_strandphaser_per_chrom:
input:
mergedbam = "snv_calls/merged.bam",
wcregions = "strand_states/" + config["sample"] + ".strandphaser_input.txt",
snppositions =
"snv_calls/" + config["sample"] + ".{chrom}.
vcf
"
,
snppositions =
locate_snv_
vcf,
configfile = "log/StrandPhaseR.{chrom}.config",
strandphaser = "utils/R-packages/StrandPhaseR/R/StrandPhaseR",
bamfolder = "bam"
...
...
@@ -403,3 +406,15 @@ rule merge_SNV_calls:
shell:
config["bcftools"] + " concat -O v -o {output} {input}"
rule split_external_snv_calls:
input:
vcf = config["snv_calls"]
output:
vcf = "external_snv_calls/" + config["sample"] + ".{chrom}.vcf"
log: "external_snv_calls/" + config["sample"] + ".{chrom}.vcf.log"
params:
bcftools = config["bcftools"],
#sample = config["sample"]
shell:
"({params.bcftools} view --samples " + config["sample"] + " --types snps {input.vcf} {wildcards.chrom} | bcftools view --genotype het - > {output.vcf}) > {log} 2>&1"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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