Skip to content

Gemma kinshipmatrix #8468

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

chriswyatt1
Copy link
Contributor

@chriswyatt1 chriswyatt1 commented May 14, 2025

PR checklist

Closes #8463 #8463

This module does the kinship matrix part of gemma.
I cannot get docker to work even though there is a biocontainer, and have not tested with singularity.

  • This comment contains a description of changes (with reason).
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Emit the versions.yml file.
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda

@chriswyatt1
Copy link
Contributor Author

It now works with docker and singularity, so think good to go except,, the input test data is on another github repo,,,, is this ok??

@chriswyatt1
Copy link
Contributor Author

Not sure how to fix the remaining errors.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we do not want to introduce changes to this files with a new module PR :)

tuple val(meta2), path(phenotype)

output:
tuple val(meta), path("output/${meta.id}.out.cXX.txt"), emit: matrix
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you move the output?

-p $phenotype \\
-gk \\
-o ${meta.id}.out
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
mv output/${prefix}.out.cXX.txt ${prefix}.out.cXX.txt

tuple val(meta2), path(phenotype)

output:
tuple val(meta), path("output/${meta.id}.out.cXX.txt"), emit: matrix
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
tuple val(meta), path("output/${meta.id}.out.cXX.txt"), emit: matrix
tuple val(meta), path("*.out.cXX.txt"), emit: matrix

Comment on lines +42 to +43
mkdir output
touch output/${meta.id}.out.cXX.txt
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
mkdir output
touch output/${meta.id}.out.cXX.txt
touch ${prefix}.out.cXX.txt

Comment on lines +22 to +27
file( "https://raw.githubusercontent.com/genetics-statistics/GEMMA/master/example/mouse_hs1940.geno.txt.gz", checkIfExists: true)

]
input[1] = [
[ id:'test', single_end:false ], // meta map
file( "https://raw.githubusercontent.com/genetics-statistics/GEMMA/master/example/mouse_hs1940.pheno.txt", checkIfExists: true),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you bring those to the test-datasets repository? Or check if there is suitable test-data over there?

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.

new module: gemma/kinship_matrix
3 participants