-
Notifications
You must be signed in to change notification settings - Fork 2
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
ENH: Added action normalize
that can normalize a FeatureTable[Frequency]
by gene length, library size and composition.
#44
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #44 +/- ##
==========================================
- Coverage 94.29% 94.15% -0.15%
==========================================
Files 20 20
Lines 1491 1197 -294
==========================================
- Hits 1406 1127 -279
+ Misses 85 70 -15 ☔ View full report in Codecov by Sentry. |
normalize
that can normalize a FeatureTable[Frequency] by gene length, library size and composition.normalize
that can normalize a FeatureTable[Frequency]
by gene length, library size and composition.
Hey @VinzentRisch the environment does not work for me. Why are you installing types-genomics? I uninstalled it and installed the latest version of q2-types. Then |
Also, two of the commands in the PR message fail for me: qiime amr normalize --i-table data/allele_feature_table.qza --i-gene-length data/amr_allele_annotation.qza --o-normalized-table output/norm_fpkm.qza --p-method "fpkm"
Plugin error from amr:
Missing one or more files for CARDAlleleAnnotationDirectoryFormat: '.+sorted.length_100.bam$'
Debug info has been saved to /var/folders/6p/vfbtsnkn1x738nqkqzcprf5w0000gn/T/qiime2-q2cli-err-yhv9osp_.log qiime amr normalize --i-table data/allele_feature_table.qza --i-gene-length data/amr_allele_annotation.qza --o-normalized-table output/norm_tpm.qza --p-method "tpm"
Plugin error from amr:
Missing one or more files for CARDAlleleAnnotationDirectoryFormat: '.+sorted.length_100.bam$'
Debug info has been saved to /var/folders/6p/vfbtsnkn1x738nqkqzcprf5w0000gn/T/qiime2-q2cli-err-b4_m_l6z.log Here are the logs: |
Ou yes Im sorry I forgot to update the files. Now they are the correct ones. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @VinzentRisch. Nice work! I made some comments with some suggestions but nothing major. All the tests pass and the actions complete without issues.
Hi @Sann5
|
Hey @VinzentRisch. For all except the first two commands in the PR message i get the following error Plugin error from amr:
Parameters m-trim and a-trim can only be used with methods TMM and CTF.
Debug info has been saved to /var/folders/6p/vfbtsnkn1x738nqkqzcprf5w0000gn/T/qiime2-q2cli-err-9cgfrctm.log Log file:
|
That is weird. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I dont know what I did wrong before but now the action works 😅 🚀
Code was moves to q2-feature-table/_normalize |
This PR closes #23
FeatureTable[Frequency]
with common RNA-seq methods. The action uses the package RNAnorm.FeatureTable[Frequency]
.CARDAlleleAnnotation
andCARDGeneAnnotation
and alsoFeatureData[SequenceCharacteristics % Properties("length")]
.Set up an environment
Run it locally
Download test files
PR_23.zip
Test it out!
go to PR_norm directory
cd PR_norm
Run all commands from PR_norm directory