File: gfrag.Rd

package info (click to toggle)
r-cran-seqinr 3.4-5-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,876 kB
  • sloc: ansic: 1,987; makefile: 14
file content (37 lines) | stat: -rw-r--r-- 1,302 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
\name{gfrag}
\alias{gfrag}
\title{Extract sequence identified by name or by number from an ACNUC server}
\description{
Get \code{length} characters from sequence identified by name or by number 
starting from position \code{start} (counted from 1). 
}
\usage{
gfrag(what, start, length, idby = c("name", "number"), socket = autosocket())
}
\arguments{
  \item{what}{A sequence name or number}
  \item{start}{Start position from 1}
  \item{length}{Number of requested characters (answer may be shorter)}
  \item{idby}{Is the sequence identified by name or number? Default to name}
  \item{socket}{an object of class \code{sockconn} connecting to a remote ACNUC
                        database (default is a socket to the last opened database).}
}
\value{
A string of characters with at most \code{length} characters (may be 
shorter than asked for). NA is returned and a warning is issued in
case of problem (non existent sequence for instance).
}
\references{ \url{http://doua.prabi.fr/databases/acnuc.html}

\code{citation("seqinr")}
}
\author{J.R. Lobry}
\seealso{\code{\link{choosebank}}, \code{\link{query}} }
\examples{
\dontrun{# Need internet connection
  choosebank("emblTP")
  gfrag("LMFLCHR36", start = 1, length = 3529852) -> myseq
  stopifnot(nchar(myseq) == 3529852)
  closebank()	
  }
}