How to interate over folder and use as input for program running in Rstudio.
0
0
Entering edit mode
2.2 years ago
Bram • 0

Hello, I'm in need of assistance in writing a small R-script.

I am using the program EditR, which is able to detect base editing from sanger sequence files. However, the tool only allows sequences to be uploaded one by one. Since I need to analyze a vast amount of sequences, I'd like to be able to upload in batch and write the output to one (or multiple) files.

The program is available in browser (https://moriaritylab.shinyapps.io/editr_v10/, as well as in Rstudio (https://github.com/MoriarityLab/EditR). (Haven't received any response from them) I am aware of the BEAT program (https://hanlab.cc/beat/) which is able to batch upload, although this is not performing as well for my application.

Since the Rstudio version of EditR is working without an internet connection, I was told that it is running "front end" and thus should be able to make alterations as to allow for batch uploading. But with my limited coding knowledge, I was unsuccessful in this. Could somebody help me on my way?

Kind regards, Bram

base-editing R sanger-sequencing EditR batch-input • 534 views
ADD COMMENT
0
Entering edit mode

I am not familiar with this tool, but if you want to run a tool over multiple files and write output to a file, here is a general idea:

res_list = c() # a list object to save results
for(i in 1:total_number_of_files)){
    obj = read_the_file_by_the_tool
    obj_proc = process_file_as_needed
    res_list[[i]] = obj_proc
}

You may get more detailed replies by showing what you have tried in R so far.

ADD REPLY

Login before adding your answer.

Traffic: 2484 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6