R/GenomicAnnotationsForPREDAFromfile.R

Defines functions GenomicAnnotationsForPREDAFromfile

Documented in GenomicAnnotationsForPREDAFromfile

### 
### This is a function reading a txt file, with custom format
### 



### The definition of the optional parameter "na.strings" should be indeed strongly recommended by the function manuals in order to avoid mistakes...

GenomicAnnotationsForPREDAFromfile<-function(file, ids_column, chr_column, start_column, end_column, strand_column, chromosomesNumbers=NULL, chromosomesLabels=NULL, chromosomesLabelsInput=NULL, MinusStrandString="-", PlusStrandString="+", optionalAnnotationsColumns=NULL, reference_position_type="median", ...) {

GenomicAnnotations_data<-read.table(file=file, stringsAsFactors=FALSE, ...)

GenomicAnnotations_data_object<-GenomicAnnotationsFromdataframe(GenomicAnnotations_dataframe=GenomicAnnotations_data, ids_column=ids_column, chr_column=chr_column, start_column=start_column, end_column=end_column, strand_column=strand_column, chromosomesNumbers=chromosomesNumbers, chromosomesLabels=chromosomesLabels, chromosomesLabelsInput=chromosomesLabelsInput, MinusStrandString=MinusStrandString, PlusStrandString=PlusStrandString, optionalAnnotationsColumns=optionalAnnotationsColumns)

GenomicAnnotationsForPREDA_data_object<-GenomicAnnotations2GenomicAnnotationsForPREDA(GenomicAnnotations_data_object, reference_position_type=reference_position_type)

return(GenomicAnnotationsForPREDA_data_object)

}

Try the PREDA package in your browser

Any scripts or data that you put into this service are public.

PREDA documentation built on Nov. 8, 2020, 7:40 p.m.