Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
riboseq_pipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
zavolan_group
pipelines
riboseq_pipeline
Commits
2b1aaec6
Commit
2b1aaec6
authored
6 years ago
by
BIOPZ-Gypas Foivos
Browse files
Options
Downloads
Patches
Plain Diff
Addition of scripts that couts the number of reads in the CDS in the process data pipeline.
parent
fe336e5b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
snakemake/prepare_annotation/dag.png
+0
-0
0 additions, 0 deletions
snakemake/prepare_annotation/dag.png
snakemake/process_data/Snakefile
+22
-2
22 additions, 2 deletions
snakemake/process_data/Snakefile
snakemake/process_data/config.yaml
+1
-0
1 addition, 0 deletions
snakemake/process_data/config.yaml
with
23 additions
and
2 deletions
snakemake/prepare_annotation/dag.png
deleted
100644 → 0
+
0
−
0
View file @
fe336e5b
24.1 KiB
This diff is collapsed.
Click to expand it.
snakemake/process_data/Snakefile
+
22
−
2
View file @
2b1aaec6
configfile: "config.yaml"
configfile: "config.yaml"
#from snakemake.utils import listfiles
#from snakemake.utils import listfiles
localrules: create_output_and_log_directories, remove_multimappers, read_length_histogram, finish
localrules: create_output_and_log_directories, remove_multimappers, read_length_histogram,
count_reads, s
finish
#################################################################################
#################################################################################
### Finish rule
### Finish rule
...
@@ -9,7 +9,8 @@ localrules: create_output_and_log_directories, remove_multimappers, read_length_
...
@@ -9,7 +9,8 @@ localrules: create_output_and_log_directories, remove_multimappers, read_length_
rule finish:
rule finish:
input:
input:
sam = expand(os.path.join(config["output_dir"], "{sample}/read_length/read_length_histogram.pdf"), sample=config["sample"])
pdf = expand(os.path.join(config["output_dir"], "{sample}/read_length/read_length_histogram.pdf"), sample=config["sample"]),
counts = expand(os.path.join(config["output_dir"], "{sample}/counts.tsv"), sample=config["sample"])
#################################################################################
#################################################################################
### Create output and log directories
### Create output and log directories
...
@@ -246,3 +247,22 @@ rule read_length_histogram:
...
@@ -246,3 +247,22 @@ rule read_length_histogram:
"(python scripts/plot_read_lengths.py \
"(python scripts/plot_read_lengths.py \
--sam {input.sam} \
--sam {input.sam} \
--outdir {params.dir}) & > {log}"
--outdir {params.dir}) & > {log}"
################################################################################
### Count reads
################################################################################
rule count_reads:
input:
sam = os.path.join(config["output_dir"], "{sample}/transcripts.mapped.unique.sam"),
transcript_id_gene_id_CDS = config["transcript_id_gene_id_CDS"]
output:
counts = os.path.join(config["output_dir"], "{sample}/counts.tsv")
threads: 1
singularity:
"docker://perl:5.24-slim"
shell:
"(perl scripts/xp-count-reads-ribseq.pl \
{input.sam} \
{input.transcript_id_gene_id_CDS} \
> {output.counts})"
This diff is collapsed.
Click to expand it.
snakemake/process_data/config.yaml
+
1
−
0
View file @
2b1aaec6
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
other_RNAs_index
:
"
../prepare_annotation/results/other_RNAs_sequence.idx"
other_RNAs_index
:
"
../prepare_annotation/results/other_RNAs_sequence.idx"
transcripts_sequence
:
"
../prepare_annotation/results/longest_pc_transcript_per_gene.fa"
transcripts_sequence
:
"
../prepare_annotation/results/longest_pc_transcript_per_gene.fa"
transcripts_index
:
"
../prepare_annotation/results/longest_pc_transcript_per_gene.idx"
transcripts_index
:
"
../prepare_annotation/results/longest_pc_transcript_per_gene.idx"
transcript_id_gene_id_CDS
:
"
../prepare_annotation/results/transcript_id_gene_id_CDS.tsv"
##############################################################################
##############################################################################
### Output and log directory
### Output and log directory
##############################################################################
##############################################################################
...
...
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