physical2genomic: physical2genomic

View source: R/physical2genomic.R

physical2genomicR Documentation

physical2genomic

Description

physical2genomic function creates data structure of chosomsomes, within it, each chrosome has four data sets: 'data' contains
1. "data": a data table of window information, gene frequencies and genomic loci
2. "smooth": a vector of smooth function
3. "size": chromsome size
4. "length": chromosme length

Usage

physical2genomic(input,chr_stat,chr_length,window_size)

Arguments

input

Required: the input gff file.

chr_stat

Optional: an optional string argument containing a chromosome stat file which is a two-cloumn tab delimited file,
the first columns is chromosome ID and the second is the size in bp.
if the file was not specified, the chromsome size will be estimate based on the last gene locus by default

chr_length

Optional: an argument containing the chromsome length information, the default is 100 CM
if the argument is just number: the number will be used as a fixed value accross all chromosomes
if the agrument is string: the string should has a a two-column tab delmited file, cr the first columns is chromosome ID and the second is the length in CM.

window_size

Optional: an optional integer for windows size, the default is 100000 bp .

Value

A data structure of four data sets: "data", "smooth", "size" and "length"

Examples

a1 = physical2genomic("peanut.gff")
a2 = physical2genomic("peanut.gff","chr_siz.txt")
a3 = physical2genomic("peanut.gff","chr_siz.txt",150,200000)
a4 = physical2genomic("peanut.gff","chr_siz.txt","chr_len.txt",200000)

USDA-ARS-GBRU/crossword documentation built on Oct. 11, 2024, 12:51 a.m.