Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ONT_pilot_gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Contributor 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
ESB
ONT_pilot_gitlab
Commits
ab685564
Commit
ab685564
authored
4 years ago
by
Valentina Galata
Browse files
Options
Downloads
Patches
Plain Diff
updated input preparation rules
parent
5feedaab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!76
Merge "cleanup" branch with "master" branch
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Snakefile
+9
-18
9 additions, 18 deletions
Snakefile
workflow/rules/prepare_input.smk
+4
-3
4 additions, 3 deletions
workflow/rules/prepare_input.smk
workflow/steps/prepare_input.smk
+1
-1
1 addition, 1 deletion
workflow/steps/prepare_input.smk
with
14 additions
and
22 deletions
Snakefile
+
9
−
18
View file @
ab685564
...
...
@@ -46,25 +46,16 @@ INPUT_SR = config["data"]["sr"]
INPUT_METAT = config["data"]["metat"]
# Data from input
DATA_FAST5 = [os.path.join(RESULTS_DIR, "input", os.path.basename(f)) for f in INPUT_FAST5]
DATA_FAST5 = [os.path.join(RESULTS_DIR, "input
_ont
", os.path.basename(f)) for f in INPUT_FAST5]
assert len(DATA_FAST5) == len(set(DATA_FAST5)), "Created link names for FAST5 files are NOT unique: {}".format(DATA_FAST5)
# DATA_SR = [os.path.join(RESULTS_DIR, "input", os.path.basename(f)) for f in INPUT_SR]
# assert len(DATA_SR) == len(set(DATA_SR)), "Created link names for SR files are NOT unique: {}".format(DATA_FAST5)
# # Input
# BARCODES = config["barcodes"]
# RUNS = [
# config["runs"]["first"],
# config["runs"]["second"],
# # config["runs"]["third"]
# ]
# SAMPLES = config["samples"]
# BINNING_SAMPLES = config["binning_samples"]
# # References
# IGC_URI = config["igc"]["uri"]
# HG38_URI = config["hg38"]["uri"]
# REFERENCES = ["igc", "hg38"]
DATA_SR = {
"r1": os.path.join(RESULTS_DIR, "input_sr", os.path.basename(INPUT_SR["r1"])),
"r2": os.path.join(RESULTS_DIR, "input_sr", os.path.basename(INPUT_SR["r2"]))
}
DATA_METAT = {
"r1": os.path.join(RESULTS_DIR, "input_metat", os.path.basename(INPUT_METAT["r1"])),
"r2": os.path.join(RESULTS_DIR, "input_metat", os.path.basename(INPUT_METAT["r2"]))
}
# # Tools
# ASSEMBLERS = config["assemblers"]
...
...
This diff is collapsed.
Click to expand it.
workflow/rules/prepare_input.smk
+
4
−
3
View file @
ab685564
...
...
@@ -4,12 +4,13 @@ localrules: link_input_files
rule link_input_files:
input:
INPUT_FAST5
#
+ INPUT_SR
+
INPUT_METAT
INPUT_FAST5 +
list(
INPUT_SR
.values()) + list(
INPUT_METAT
.values())
output:
DATA_FAST5
#
+ DATA_SR
+ DATA_METAT
DATA_FAST5 +
list(
DATA_SR
.values()) + list(DATA_METAT.values())
message:
"Link input files"
run:
assert len(input) == len(output), "Input and output lists have different length"
for ifname, ofname in zip(input, output):
os.symlink(ifname, ofname, target_is_directory=False)
\ No newline at end of file
# print("{} ==> {}".format(ifname, ofname))
os.symlink(os.path.abspath(ifname), ofname, target_is_directory=False)
This diff is collapsed.
Click to expand it.
workflow/steps/prepare_input.smk
+
1
−
1
View file @
ab685564
...
...
@@ -5,7 +5,7 @@ include:
rule PREPARE_INPUT:
input:
DATA_FAST5
#
+ DATA_SR
+ DATA_METAT
DATA_FAST5 +
list(
DATA_SR
.values()) + list(DATA_METAT.values())
output:
"status/prepare_input.done"
shell:
...
...
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