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

charybdis/bin/OTU_CVT_addSampleDescs.R is fragile! #41

Open
ekrell opened this issue Aug 31, 2019 · 1 comment
Open

charybdis/bin/OTU_CVT_addSampleDescs.R is fragile! #41

ekrell opened this issue Aug 31, 2019 · 1 comment

Comments

@ekrell
Copy link
Contributor

ekrell commented Aug 31, 2019

The following line works IF you happen to get superorder as the first column after the samples.
I have to change this string depending on the job.

stopPos <- which(colnames == "superorder") -1

The problem is the variable-number of sample columns with arbitrary naming.
A hacky, but reliable, solution would be an empty column with a delimiting name.
Otherwise, would need to track the number of sample columns between successive scripts: nasty. It is the fact that we are using multiple scripts that makes this complex, but I still like the modular approach overall.

@cbird808
Copy link
Contributor

cbird808 commented Sep 2, 2019

While this is fresh in your head, can you update the script with the empty column solution?

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

2 participants