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

ssm_to_proteinpaint function needed #249

Open
rdmorin opened this issue Sep 14, 2023 · 7 comments
Open

ssm_to_proteinpaint function needed #249

rdmorin opened this issue Sep 14, 2023 · 7 comments
Assignees

Comments

@rdmorin
Copy link
Collaborator

rdmorin commented Sep 14, 2023

We need a function that takes a data frame in MAF format and generates an input file for ProteinPaint using the mutations in the MAF.

It should optionally add one or more of the optional columns that ProteinPaint can accept (using information in the GAMBL metadata).

@rdmorin
Copy link
Collaborator Author

rdmorin commented Dec 18, 2023

@vladimirsouza has this been completed?

@vladimirsouza
Copy link
Contributor

Yes. This has been addressed in this open PR and is waiting for approval.

@rdmorin
Copy link
Collaborator Author

rdmorin commented Dec 19, 2023

Can @mattssca or @Kdreval or @HoumanLM review this please?

@Kdreval
Copy link
Contributor

Kdreval commented Dec 19, 2023

Yes that PR is under review and there few outstanding things to address/improve. It was updated to resolve those and I will review it today 👍

@HoumanLM
Copy link
Collaborator

HoumanLM commented Dec 19, 2023

I have two small suggestions:
For the checking the columns and printing error message in case some of them are not in the file, maybe it would be better if we summarize the code to make it easier to understand. For example, we can change it to this code:

  • if (any(!(maf_req_cols %in% names(maf_data)))) {
  • missing_cols <- maf_req_cols[!(maf_req_cols %in% names(maf_data))]
    
  • stop(paste("Required columns missing in the input MAF data frame:", paste(missing_cols, collapse = ", ")))
    
  • }

The other thing is about coding_only param which might be better if we make its default value to "TRUE" as we are going to consider variants in the context of proteins.

@mattssca
Copy link
Contributor

mattssca commented Dec 19, 2023

Thanks, Houman! The PR is merged. Please post your suggestions for enhancement under the correct repo (GAMBLR.viz) for this function as a new issue and mark it with the enhancement tag (or any other tag you seem fit).

@HoumanLM
Copy link
Collaborator

Sure Adam! Thanks!

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

No branches or pull requests

5 participants