Skip to content

Minor fixes#16

Open
khersameesh24 wants to merge 10 commits intodevfrom
minor-fixes
Open

Minor fixes#16
khersameesh24 wants to merge 10 commits intodevfrom
minor-fixes

Conversation

@khersameesh24
Copy link
Copy Markdown
Member

@khersameesh24 khersameesh24 commented Apr 29, 2026

Minor testing changes

closes #13

Copy link
Copy Markdown
Member

@ozlemmuslu ozlemmuslu left a comment

Choose a reason for hiding this comment

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

Hi,

Many thanks for the pull request. I added my comments here. Let's minimize the changes in this pull request to nextflow updates and upgrading the individual submodules. The torch GPU/CPU issue will be solved separately and less platform dependent

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I will be updating the torch in this environment, so please remove this part from the PR

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am adding CPU support back, so let's remove this as well, thanks!

log.info "[INFO] Samplesheet validated"

def sep = ch_samplesheet_file.name.endsWith('.tsv') ? '\t' : ','
def sep = params.samplesheet.endsWith('.tsv') ? '\t' : ','
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

here it seems the file extension is read from params.samplesheet, but the file that's being read is ch_samplesheet. This looks error-prone, please use the same file path for both.

Also overall, there are variable names like samplesheet, ch_samplesheet, samplesheet_ch. are these all referring to the same file? if so, we can use the same name, if not, let's use more descriptive names

samplesheet_ch.map { path ->
def header = path.text.readLines()[0]
def cols = header.split(/,|\t/) // handle CSV or TSV
def sep = path.name.endsWith('.tsv') ? '\t' : ','
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the variable sep was computed before the function call, and can be passed as an argument to this function

error "Samplesheet is missing required columns: ${missing.join(', ')}"
}

// Optional: check BAM files exist
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The existence of BAM paths is checked elsewhere already:

def validate_paths(df, skip_preprocessing):

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.

2 participants