Browse code

rename roi to which

LiNk-NY authored on 05/10/2022 22:16:03
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 \alias{TENxFragments}
5 5
 \title{TENxFragments: Import fragments files from 10X}
6 6
 \usage{
7
-TENxFragments(resource, yieldSize = 200, roi = GRanges(), ...)
7
+TENxFragments(resource, yieldSize = 200, which = GRanges(), ...)
8 8
 }
9 9
 \arguments{
10 10
 \item{resource}{character(1) The file path to the fragments resource, usually
... ...
@@ -13,7 +13,7 @@ a compressed tabix file with extension \code{.tsv.gz}.}
13 13
 \item{yieldSize}{numeric() The number of records to read by default, 200
14 14
 records will be imported. A warning will be emitted if not modified.}
15 15
 
16
-\item{roi}{GRanges() A GRanges indicating the regions of interest. This
16
+\item{which}{GRanges() A GRanges indicating the regions of interest. This
17 17
 get sent to \code{RSamtools} as the \code{param} input.}
18 18
 
19 19
 \item{...}{Further arguments to the class generator function (currently not
Browse code

add and update \value sections in docs

LiNk-NY authored on 24/08/2022 22:58:22
Showing 1 changed files
... ...
@@ -19,6 +19,9 @@ get sent to \code{RSamtools} as the \code{param} input.}
19 19
 \item{...}{Further arguments to the class generator function (currently not
20 20
 used)}
21 21
 }
22
+\value{
23
+A \code{RaggedExperiment} object class
24
+}
22 25
 \description{
23 26
 TENxFragments: Import fragments files from 10X
24 27
 }
Browse code

add fragments file and index example for TENxFragments

LiNk-NY authored on 03/08/2022 16:36:44
Showing 1 changed files
... ...
@@ -24,12 +24,13 @@ TENxFragments: Import fragments files from 10X
24 24
 }
25 25
 \examples{
26 26
 
27
-con <- TENxFile("~/data/10x/pbmc_3k/pbmc_granulocyte_sorted_3k_filtered_feature_bc_matrix.h5")
28
-con
29
-sce <- import(con)
27
+fr <- system.file(
28
+    "extdata", "pbmc_3k_atac_ex_fragments.tsv.gz",
29
+    package = "TENxIO", mustWork = TRUE
30
+)
30 31
 
31
-fr <- "~/data/10x/pbmc_3k/pbmc_granulocyte_sorted_3k_atac_fragments.tsv.gz"
32 32
 tfr <- TENxFragments(fr)
33
+
33 34
 fra <- import(tfr)
34 35
 
35 36
 }
Browse code

documentation updates

LiNk-NY authored on 14/07/2022 16:58:36
Showing 1 changed files
... ...
@@ -2,8 +2,7 @@
2 2
 % Please edit documentation in R/TENxFragments-class.R
3 3
 \name{TENxFragments}
4 4
 \alias{TENxFragments}
5
-\alias{TENxFragments-class}
6
-\title{Import fragments files from 10X}
5
+\title{TENxFragments: Import fragments files from 10X}
7 6
 \usage{
8 7
 TENxFragments(resource, yieldSize = 200, roi = GRanges(), ...)
9 8
 }
... ...
@@ -12,7 +11,7 @@ TENxFragments(resource, yieldSize = 200, roi = GRanges(), ...)
12 11
 a compressed tabix file with extension \code{.tsv.gz}.}
13 12
 
14 13
 \item{yieldSize}{numeric() The number of records to read by default, 200
15
-records will be imported. A warning will be emmitted if not modified.}
14
+records will be imported. A warning will be emitted if not modified.}
16 15
 
17 16
 \item{roi}{GRanges() A GRanges indicating the regions of interest. This
18 17
 get sent to \code{RSamtools} as the \code{param} input.}
... ...
@@ -21,7 +20,7 @@ get sent to \code{RSamtools} as the \code{param} input.}
21 20
 used)}
22 21
 }
23 22
 \description{
24
-Import fragments files from 10X
23
+TENxFragments: Import fragments files from 10X
25 24
 }
26 25
 \examples{
27 26
 
Browse code

set yieldSize to default when roi present

LiNk-NY authored on 16/06/2022 18:04:58
Showing 1 changed files
... ...
@@ -26,6 +26,7 @@ Import fragments files from 10X
26 26
 \examples{
27 27
 
28 28
 con <- TENxFile("~/data/10x/pbmc_3k/pbmc_granulocyte_sorted_3k_filtered_feature_bc_matrix.h5")
29
+con
29 30
 sce <- import(con)
30 31
 
31 32
 fr <- "~/data/10x/pbmc_3k/pbmc_granulocyte_sorted_3k_atac_fragments.tsv.gz"
Browse code

move TENxFragments class

LiNk-NY authored on 03/06/2022 19:53:40
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,35 @@
1
+% Generated by roxygen2: do not edit by hand
2
+% Please edit documentation in R/TENxFragments-class.R
3
+\name{TENxFragments}
4
+\alias{TENxFragments}
5
+\alias{TENxFragments-class}
6
+\title{Import fragments files from 10X}
7
+\usage{
8
+TENxFragments(resource, yieldSize = 200, roi = GRanges(), ...)
9
+}
10
+\arguments{
11
+\item{resource}{character(1) The file path to the fragments resource, usually
12
+a compressed tabix file with extension \code{.tsv.gz}.}
13
+
14
+\item{yieldSize}{numeric() The number of records to read by default, 200
15
+records will be imported. A warning will be emmitted if not modified.}
16
+
17
+\item{roi}{GRanges() A GRanges indicating the regions of interest. This
18
+get sent to \code{RSamtools} as the \code{param} input.}
19
+
20
+\item{...}{Further arguments to the class generator function (currently not
21
+used)}
22
+}
23
+\description{
24
+Import fragments files from 10X
25
+}
26
+\examples{
27
+
28
+con <- TENxFile("~/data/10x/pbmc_3k/pbmc_granulocyte_sorted_3k_filtered_feature_bc_matrix.h5")
29
+sce <- import(con)
30
+
31
+fr <- "~/data/10x/pbmc_3k/pbmc_granulocyte_sorted_3k_atac_fragments.tsv.gz"
32
+tfr <- TENxFragments(fr)
33
+fra <- import(tfr)
34
+
35
+}