Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PAQR_KAPAC
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_public
PAQR_KAPAC
Commits
380bc1d3
Commit
380bc1d3
authored
7 years ago
by
BIOPZ-Schmidt Ralf
Browse files
Options
Downloads
Patches
Plain Diff
updated relative usage inference script to include the reporting of single distal sites
parent
9cec9d8b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
PAQR/part_two.Snakefile
+13
-4
13 additions, 4 deletions
PAQR/part_two.Snakefile
PAQR/scripts/deNovo-used-sites-and-usage-inference.single_distal_included.py
+2278
-0
2278 additions, 0 deletions
...-used-sites-and-usage-inference.single_distal_included.py
with
2295 additions
and
4 deletions
.gitignore
+
4
−
0
View file @
380bc1d3
...
...
@@ -12,8 +12,12 @@ PAQR/.snakemake/
PAQR/scripts/deNovo-used-sites-and-usage-inference.testVersion.py
KAPAC/doIt.sh
KAPAC/RESULTS/
KAPAC/RESULTS_FORMER.log
KAPAC/RESULTS_FORMER/
KAPAC/RESULTS_FORMER_AFTER_CLEANUP/
KAPAC/RESULTS.log
# Rhistory
*.Rhistory
KAPAC/DATA/kmer_counts_all.tsv
# exclude the gitignore as well
.gitignore
This diff is collapsed.
Click to expand it.
PAQR/part_two.Snakefile
+
13
−
4
View file @
380bc1d3
...
...
@@ -83,6 +83,7 @@ rule infer_relative_usage:
output:
relUse = "{study}/relative_usages.tsv",
expressions = "{study}/tandem_pas_expressions.tsv",
distal_sites = "{study}/single_distal_sites.tsv"
header = "{study}/relative_usages.header.out"
params:
script_dir = config['dir.scripts'],
...
...
@@ -115,9 +116,8 @@ rule infer_relative_usage:
conds_string = " ".join(conds)
extens_string = " ".join(extens)
shell('''
{params.py2_env_path}/py2_paqr/bin/python {params.script_dir}/deNovo-used-sites-and-usage-inference.py \
{params.py2_env_path}/py2_paqr/bin/python {params.script_dir}/deNovo-used-sites-and-usage-inference.
single_distal_included.
py \
--verbose \
--expressions_out {output.expressions} \
--clusters {params.clusters} \
--coverages {input.coverages} \
--conditions {conds_string} \
...
...
@@ -131,11 +131,12 @@ rule infer_relative_usage:
--best_break_point_upstream_extension {params.valid_region_upstream_of_cluster_to_locate_globalBestBreakPoint_in} \
--processors {threads} \
--max_downstream_coverage {params.max_downstream_cov_relative_to_start} \
--expressions_out {output.expressions} \
--distal_sites {output.distal_sites} \
> {output.relUse} \
2> {log}
''')
#-------------------------------------------------------------------------------
# create design file for polyA-MARA
#-------------------------------------------------------------------------------
...
...
@@ -172,7 +173,8 @@ rule design_file:
rule tpm_normalize:
##LOCAL##
input:
expression = "{study}/tandem_pas_expressions.tsv"
expression = "{study}/tandem_pas_expressions.tsv",
distal_sites = "{study}/single_distal_sites.tsv"
output:
tpm_expr = "{study}/tandem_pas_expressions.rpm.tsv"
run:
...
...
@@ -188,6 +190,13 @@ rule tpm_normalize:
continue
libsizes[ i - 10 ] += float(F[i])
with open(input.distal_sites, "r") as distal_in:
for line in distal_in:
for i in range(10, len(F)):
if float(F[i]) == -1:
continue
libsizes[ i - 10 ] += float(F[i])
with open(output.tpm_expr, "w") as ofile:
with open(input.expression, "r") as ifile:
for line in ifile:
...
...
This diff is collapsed.
Click to expand it.
PAQR/scripts/deNovo-used-sites-and-usage-inference.single_distal_included.py
0 → 100644
+
2278
−
0
View file @
380bc1d3
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