read.short.arachne.tags: Read in ARACHNE short tags

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

Read in short arachne reads

Usage

1
read.short.arachne.tags(filename, fix.chromosome.names = F)

Arguments

filename

filename

fix.chromosome.names

Fix chromosome names

Details

Not necessary

Value

A list like structure

Note

No Notes

Author(s)

Peter Kharchenko

References

spp by Peter Kharchenko

See Also

Nothing to see here

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (filename, fix.chromosome.names = F) 
{
    tl <- lapply(.Call("read_arachne", path.expand(filename)), 
        function(d) {
            xo <- order(abs(d$t))
            d$t <- d$t[xo]
            d$n <- d$n[xo]
            return(d)
        })
    if (fix.chromosome.names) {
        names(tl) <- gsub("\.fa", "", names(tl))
    }
    return(list(tags = lapply(tl, function(d) d$t), quality = lapply(tl, 
        function(d) d$n)))
  }

## End(Not run)

spp documentation built on May 30, 2019, 5:03 p.m.