-
Notifications
You must be signed in to change notification settings - Fork 1
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
Merge Antibody and Interface Features R scripts #1
base: master
Are you sure you want to change the base?
Conversation
…een meaning to remove.
This is awesome! Going to follow your lead on this. On Thu, Jun 16, 2016 at 7:00 PM, Jared Adolf-Bryfogle <
Rebecca Faye Alford |
Also, I just found a bug generally in the features reporters where the order plotted does not match the order given in the JSON file. This is a problem for two or more sample sources, especially with the native stuck in the middle... We should fix this in this PR (and merge in the PR as it stands now soon too!) |
@momeara - any guidance on the ordering? I need it for publication, so I'm going to try to fix it now... |
What you have so far looks good, but please add Keeping the sample source order consistent with the config file sounds good to me. |
Will do. I think after that, maybe we can merge in. I think the option stuff that simon is working on should be a separate PR. |
Sounds good to me! On Wed, Sep 14, 2016 at 12:25 PM, Jared Adolf-Bryfogle <
|
Awesome - also - before I keep going - Was the ordering consistent with the JSON file before, or did I just think it was? I was pretty sure the ordering was kept, but I just wanted to make sure. I can't seem to find where the ordering is lost in compare_sample_sources |
It isn't clear to me where they are getting re-arranged, but what ever the On Wed, Sep 14, 2016 at 1:08 PM, Jared Adolf-Bryfogle <
|
OK. Searching for sort and order didn't show any code that could be it. Reading docs to the fromJson function, it seems that ordering of vectors should be preserved by default. Are there any other ordering functions you know of that could cause it? They are definitely sorted by sample source name in the plots. |
The configuration is sound. Order at the beginning print, order at the end during close of the dbs. The order in query_sample_sources is messed up, however. The sources are not loaded in order - but the function isn't doing anything funky besides ddply |
I'm still not sure why this is the case. Its either underlying ddply functions or geom_indicator. I'm going to rename my variables and table this. I think maybe you could find the solution, but I'm about at my limit atm. |
This merge will get our antibody and interface R scripts into the new library structure. Some general fixes that allow Rscript to run are here as well.
This merge also adds the following executable scripts, some of which will be deleted after this PR is complete:
run_features.R
takes a JSON config file and runs it.install_local.R installs the local version, but it doesn't quite work yet.
The other two are temporary. Eventually a script like this will be part of Rosetta proper in the
source/scripts/features
directory.Specific scripts that need to be fixed still