-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The workflows now follow snakefmt formatting. How number of new lines…
… are applied are a bit inconsistent right now, but I have submitted an issue for this snakemake/snakefmt#93
- Loading branch information
Showing
2 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
units = pd.read_table(config["units"], index_col=["sample", "unit"], dtype=str) | ||
units.index = units.index.set_levels([i.astype(str) for i in units.index.levels]) # enforce str in index | ||
|
||
|
||
def fastq_files(wildcards): | ||
return [v[0] for k, v in units.loc[wildcards.sample].items()] | ||
|
||
fastp_trimming_input=lambda wildcards: fastq_files(wildcards) | ||
|
||
include: "../rules/Fastq/Fastp_trimming.smk" | ||
fastp_trimming_input = lambda wildcards: fastq_files(wildcards) | ||
|
||
include: "../rules/Alignment/bwa-mem.smk" | ||
|
||
include: "../rules/Fastq/Fastp_trimming.smk" | ||
include: "../rules/Alignment/bwa-mem.smk" |