Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/chip spikein #116

Merged
merged 60 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
68f21bf
remove large file from tests
CChahrour Apr 26, 2023
9fb3915
publish only on push to master
CChahrour Apr 26, 2023
0660c01
add singularity path to tests
CChahrour Apr 26, 2023
510f227
Feat split fastq files (#65)
CChahrour May 4, 2023
17ded58
Merge branch 'master' into develop
alsmith151 May 17, 2023
ae463d8
feat: Added chip-rx assay (#68)
alsmith151 May 25, 2023
0f9bcea
fix: removed seqnado import. Not in container. (#73)
alsmith151 Jun 17, 2023
83c8232
Merge branch 'master' into develop
alsmith151 Jun 17, 2023
7b0a451
fix: Enable profile to work on new JADE cluster (#70)
alsmith151 Jun 20, 2023
e9977c2
fix: "false" missing from is_off function. (#72)
alsmith151 Jun 20, 2023
2698402
fix: ChIP-rx pipeline when duplicate samples present (#71)
alsmith151 Jun 20, 2023
bed2cfd
Merge branch 'master' into develop
alsmith151 Jun 20, 2023
8632ada
fix: typo in deseq2 key
alsmith151 Jun 26, 2023
0cb6db0
fix blacklist populating from cookiecutter
CChahrour Jul 20, 2023
d1df2a8
Merge branch 'develop' into 79-blacklist-not-being-added-when-using-s…
alsmith151 Jul 24, 2023
93e797f
Fix profile for jade cluster (#83)
CChahrour Jul 24, 2023
266070e
Merge branch 'develop' of github.com:alsmith151/SeqNado into develop
alsmith151 Aug 4, 2023
9894f97
fix bugs in deseq2 report (#87)
CChahrour Aug 8, 2023
66000f0
Merge branch 'develop' of github.com:alsmith151/SeqNado into develop
alsmith151 Aug 8, 2023
5544bdd
Merge branch 'master' into develop
alsmith151 Aug 8, 2023
0755f6a
make raw bams temp (#97)
CChahrour Aug 9, 2023
69e5388
Fix rna pipeline (#98)
CChahrour Aug 11, 2023
2993e09
Feat add attempts for potential oom jobs (#101)
CChahrour Aug 16, 2023
754841c
add attempts to sorting (#102)
CChahrour Aug 16, 2023
c874eef
Fix snp pipeline (#103)
CChahrour Aug 30, 2023
fb8e4ee
feat: added consensus peak calling (#90)
alsmith151 Sep 20, 2023
8f20722
Merge branch 'master' into develop
alsmith151 Oct 4, 2023
790fd52
add chip ref norm with concat genome
CChahrour Jan 2, 2024
2b02f29
add split_bam.py
CChahrour Jan 3, 2024
217d90c
split with samtools
CChahrour Jan 3, 2024
67f01ec
amended norm to orlando method
CChahrour Jan 3, 2024
7413bf1
add rx to chip as an option
CChahrour Jan 4, 2024
9334d29
fix fastqscreen to run
CChahrour Jan 4, 2024
ddecdfc
fix scaling factors for deeptools
CChahrour Jan 4, 2024
8865073
change heatmap to scale regions and add metaplot
CChahrour Jan 8, 2024
b527f67
changed config to jinja2
CChahrour Jan 9, 2024
9f61c63
add deseq2 template
CChahrour Jan 9, 2024
9881884
change config file ext to yml
CChahrour Jan 9, 2024
86da35b
fix indentation in too options
CChahrour Jan 9, 2024
9d6d87a
update chiprx in snakefile
CChahrour Jan 9, 2024
b74cdbd
fix typos for rna config
CChahrour Jan 9, 2024
4a5a23f
add preset genomes to config
CChahrour Jan 10, 2024
c2054ff
fix for genome other
CChahrour Jan 10, 2024
5021020
made jinja env work in other dir
CChahrour Jan 10, 2024
aec00b3
updated chip test for jinja config
CChahrour Jan 10, 2024
1fe27ec
debug tests
CChahrour Jan 10, 2024
5cb2254
remove --no-input from testpipeline
CChahrour Jan 10, 2024
9db80d3
fix rna test
CChahrour Jan 10, 2024
9b5a3b8
fix type in orlando spike in py
CChahrour Jan 10, 2024
a27d703
remove config test from test_pipeline.yml
CChahrour Jan 10, 2024
1286f4b
tweek heatmap time limit
CChahrour Jan 10, 2024
e6f199c
deseq and heatmap changes
CChahrour Jan 11, 2024
b9b7049
tidy up star folder
CChahrour Jan 12, 2024
1edd5eb
update deseq2 template
CChahrour Jan 12, 2024
eaa37e8
added go and gsea to deseq2 template
CChahrour Jan 12, 2024
d6b3915
fix star temp files cleanup
CChahrour Jan 18, 2024
412a6f3
fix typo in star align rule
CChahrour Jan 18, 2024
230e82c
Merge remote-tracking branch 'origin' into feature/chip_spikein
CChahrour Jan 18, 2024
3ddb775
merge master into chip
CChahrour Jan 18, 2024
ba12cd8
removed dupe arg cli
CChahrour Jan 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions seqnado/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def cli_pipeline(
if version:
from importlib.metadata import version

_version = version("seqnado")

_version = version("seqnado")
print(f"SeqNado version {_version}")
return
Expand Down
51 changes: 27 additions & 24 deletions seqnado/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ def symlink_fastq_files(

def define_output_files(
assay: Literal["ChIP", "ATAC", "RNA", "SNP"],
chip_spikein_normalisation: bool = False,
sample_names: list = None,
pileup_method: list = None,
peak_calling_method: list = None,
Expand All @@ -691,20 +692,29 @@ def define_output_files(
if kwargs["remove_pcr_duplicates_method"] == "picard":
analysis_output.append("seqnado_output/qc/library_complexity_qc.html")

if make_heatmaps:
assay_output.extend(
[
"seqnado_output/heatmap/heatmap.pdf",
"seqnado_output/heatmap/metaplot.pdf",
]
)

if make_ucsc_hub:
hub_dir = pathlib.Path(kwargs["ucsc_hub_details"]["directory"])
hub_name = kwargs["ucsc_hub_details"]["name"]
hub_txt = hub_dir / f"{hub_name}.hub.txt"
analysis_output.append(str(hub_txt))

if assay in ["ChIP", "ATAC"]:
if assay == "ChIP" and kwargs["spikein"]:
assay_output.extend(
[
"seqnado_output/qc/full_fastqscreen_report.html",
"seqnado_output/normalisation_factors.tsv",
]
)
if assay == "ChIP" and chip_spikein_normalisation:
if assay == "ChIP":
assay_output.extend(
[
"seqnado_output/qc/full_fastqscreen_report.html",
"seqnado_output/normalisation_factors.tsv",
]
)

if make_bigwigs and pileup_method:
assay_output.extend(
Expand Down Expand Up @@ -733,15 +743,17 @@ def define_output_files(
)
)

if make_heatmaps:
assay_output.extend(
[
"seqnado_output/heatmap/heatmap.pdf",
"seqnado_output/heatmap/metaplot.pdf",
]
)

elif assay == "RNA":
assay_output.extend(
[
"seqnado_output/feature_counts/read_counts.tsv",
*expand(
"seqnado_output/aligned/{sample}.bam",
sample=sample_names,
),
]
)

if make_bigwigs and pileup_method:
assay_output.extend(
expand(
Expand All @@ -760,15 +772,6 @@ def define_output_files(
"Not running DESeq2 as no 'deseq2' column in design file."
)

assay_output.extend(
[
"seqnado_output/feature_counts/read_counts.tsv",
*expand(
"seqnado_output/aligned/{sample}.bam",
sample=sample_names,
),
]
)

elif assay == "SNP":
if call_snps:
Expand Down
Loading
Loading