02 - initialize your project
First we need to specify a number of parameters for the project.
# directory where your test project will be created
# if the directory does not exist, MitoPilot will create it
<- "/pool/public/genomics/<<USER>>/MitoPilot_workshop/my_project/run_01"
wd
# full path to your sample mapping CSV file
# swap <<USER>> for your user ID
<- "/pool/public/genomics/<<USER>>/MitoPilot_workshop/my_project/run_01/map_file.csv"
map_file
# full path to your sequence data directory
# swap <<USER>> for your user ID
<- "/pool/public/genomics/<<USER>>/MitoPilot_workshop/my_project/run_01/seq_data"
seq_data
# genetic code for your samples
# see https://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi
<- 2
genetic_code
# minimum number of reads required to process a sample
<- 1000000
min_reads
# specify an execution environment, "local", "NMNH_Hydra", or "NOAA_SEDNA"
<- "NMNH_Hydra" ex
Now we can initialize the project using those parameters.
# load the MitoPilot package
library(MitoPilot)
# initialize the test project
::new_project(
MitoPilotpath = wd,
executor = ex,
mapping_fn = map_file,
genetic_code = genetic_code,
min_depth = min_reads,
data_path = seq_data,
Rproj = FALSE
)
Now we’re ready to launch the GUI and start processing our samples!
# the function to launch the GUI
# must be called from within your project directory
setwd(wd)
::MitoPilot() MitoPilot