Closed kad-ecoli closed 2 years ago
ratesfun <- function(x,y) {
x / y
}
Should we consider case where y==0?
Amplified_Prediction_script.R.zip Please see an example where the command line argument is used to specified the input file name. To run the program:
mkdir test
cd test
Rscript ../Amplified_Prediction_script.R "../sample 5.8S rRNA data input and output/amplified_predictions_script INPUTS/Amplified-TRNA-Huh-5_8S_5_8_profile.txt" "../sample 5.8S rRNA data input and output/amplified_predictions_script INPUTS/Amplified-TRNA-Huh-5_8S_Untreated_5_8_mutation_counts.txt" "../sample 5.8S rRNA data input and output/amplified_predictions_script INPUTS/Amplified-TRNA-Huh-5_8S_Modified_5_8_mutation_counts.txt"
Here, only the input file names are specified by command line arguments, while output file names are hard coded, which should not be a big problem so long as the output is in the current folder.
Thank you so much Chengxin! Huge help. Have made some small changes, and have also added the output_reordering.r file.
A few suggestions on the code:
dplyr
andforeign
.Amplified-TRNA-Huh-5_8S_Untreated_5_8_mutation_counts.txtt
should probably be changed toAmplified-TRNA-Huh-5_8S_Untreated_5_8_mutation_counts.txt
@attribute Modifications
should be automatically written rather than manually changed by the user.