Skip to content

Commit

Permalink
Merge branch 'main' of github.com:boulardlab/3t-seq
Browse files Browse the repository at this point in the history
  • Loading branch information
ftabaro committed Jun 16, 2024
2 parents 80201ba + 6def83a commit 4cd56b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
3 changes: 2 additions & 1 deletion workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ include: "rules/common.smk"
###########################


containerized: "docker://ftabaro/rna-seq:1.2"
containerized: "docker://ftabaro/rna-seq:1.3"


#######################
Expand Down Expand Up @@ -133,6 +133,7 @@ init_folders = [
tables_folder,
pictures_folder,
notebooks_folder,
fastqc_raw_folder,
]


Expand Down
21 changes: 11 additions & 10 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -159,17 +159,18 @@ def get_fastq_paired(wildcards):


def get_fastq(wildcards):
if wildcards.serie in library_names_single:
for p in raw_reads_folder.joinpath(wildcards.serie).iterdir():
gd = parse_filepath(p)
if gd["sample"] == wildcards.sample:
return p
raise ValueError(
"Could not determine input files for serie: {}".format(wildcards.serie)
for p in raw_reads_folder.joinpath(wildcards.serie).iterdir():
gd = parse_filepath(p)
s = gd["sample"]
if gd["mate"] != "":
s += gd["mate"]
if s == wildcards.sample:
return p
raise ValueError(
"Could not determine input files for serie: {}\nsample: {}\n{}".format(
wildcards.serie, wildcards.sample, gd
)
else:
ret = list(get_fastq_paired(wildcards).values())
return ret
)


def mkdir(p: Path, verbose=False):
Expand Down

0 comments on commit 4cd56b7

Please sign in to comment.