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

Benchmarking #118

Open
wants to merge 29 commits into
base: dev
Choose a base branch
from
Open

Benchmarking #118

wants to merge 29 commits into from

Conversation

Fabian-Boehm
Copy link

@Fabian-Boehm Fabian-Boehm commented May 8, 2024

Implementation of benchmarking and statistics based on the comparison of polyA selected RNA and total RNA

@Fabian-Boehm Fabian-Boehm requested a review from nictru May 8, 2024 10:07
@nictru nictru linked an issue Jun 9, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Jun 18, 2024

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 467e617

+| ✅ 248 tests passed       |+
!| ❗   1 tests had warnings |!

❗ Test warnings:

  • readme - README contains the placeholder zenodo.XXXXXXX. This should be replaced with the zenodo doi (after the first release).

✅ Tests passed:

Run details

  • nf-core/tools version 2.14.1
  • Run at 2024-09-05 15:43:13

Copy link
Contributor

@nictru nictru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start :)

modules/local/benchmarking/location_plots/main.nf Outdated Show resolved Hide resolved
modules/local/benchmarking/overlap_plot/main.nf Outdated Show resolved Hide resolved
modules/local/benchmarking/average_tsv/main.nf Outdated Show resolved Hide resolved
modules/local/benchmarking/location_plots/main.nf Outdated Show resolved Hide resolved
modules/local/benchmarking/overlap_plot/main.nf Outdated Show resolved Hide resolved
modules/local/benchmarking/png_json/main.nf Show resolved Hide resolved
label "process_single"

conda "bioconda::seaborn=0.11.2"
container 'uphl/seaborn'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Seqera containers for creating Docker and singularity containers here

container 'uphl/seaborn'

input:
tuple val(id), path(bedfile1), path(bedfile2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What id is inserted here? Should this not be called meta? If so, you can add the meta.id as a tag


input:
tuple val(meta), path(bed)
path "versions.yml"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Versions input?

label "process_single"

conda "bioconda::seaborn=0.11.2"
container 'uphl/seaborn'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Seqera containers for creating Docker and singularity containers here

@@ -0,0 +1,17 @@
process OVERLAP_PLOT {
label "process_single"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def read_bed_file(file_path):
data = {'chromosome': [], 'start': [], 'strand': []}
with open(file_path, 'r') as file:
reader = csv.reader(file, delimiter='\t')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder

Comment on lines +4 to +5
conda "bioconda::matplotlib=3.5.1 bioconda::seaborn=0.11.2"
container 'https://depot.galaxyproject.org/singularity/bionumpy:0.2.12--pyha8f3691_0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder

"description": "Run the pipeline in benchmarking mode.",
"default": false,
"fa_icon": "fas fa-chart-line",
"help_text": "This enables parallel analysis of polyA-enriched data with the same circRNA quantification tools to compare performance."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"help_text": "This enables parallel analysis of polyA-enriched data with the same circRNA quantification tools to compare performance."
"help_text": "This enables parallel analysis of polyA-enriched data with the same circRNA quantification tools to compare results."

Comment on lines +100 to +117
ch_versions = ch_versions.mix(SORT.out.versions)
ch_versions = ch_versions.mix(BEDTOOLS_MERGE.out.versions)
ch_versions = ch_versions.mix(BEDTOOLS_JACCARD.out.versions)
ch_versions = ch_versions.mix(BEDTOOLS_GENOMECOV.out.versions)
ch_versions = ch_versions.mix(BEDTOOLS_INTERSECT.out.versions)
ch_versions = ch_versions.mix(JACCARD_MULTIQC.out.versions)
ch_versions = ch_versions.mix(AVERAGE_TSV.out.versions)
ch_versions = ch_versions.mix(OVERLAP_PLOT.out.versions)
ch_versions = ch_versions.mix(OVERLAP_JSON.out.versions)
ch_versions = ch_versions.mix(LOCATION_PLOT.out.versions)
ch_versions = ch_versions.mix(LOCATION_JSON.out.versions)
ch_versions = ch_versions.mix(SEQ_DEPTH_CORRELLATION.out.versions)

ch_versions = ch_versions.mix(CORRELATION_MULTIQC.out.versions)

ch_reports = JACCARD_MULTIQC.out.report.mix(LOCATION_JSON.out.report)
ch_reports = ch_reports.mix(OVERLAP_JSON.out.report)
ch_reports = ch_reports.mix(CORRELATION_MULTIQC.out.report)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better move this mix operations to the locations where each tool is called instead of having one big junk

@nictru nictru marked this pull request as ready for review September 5, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement polyA-Benchmarking
2 participants