Browse code

fix missing anchor from inheritedParams

LiNk-NY authored on 21/11/2024 16:36:42
Showing 1 changed files
... ...
@@ -32,13 +32,14 @@
32 32
 \item{con}{The connection from which data is loaded or to which data is
33 33
 saved. If this is a \code{character} vector, it is assumed to be a file name and
34 34
 a corresponding file connection is created and then closed after exporting
35
-the object. If it is a \linkS4class{BiocFile} derivative, the data is loaded from
36
-or saved to the underlying resource. If missing, the function will return
37
-the output as a character vector, rather than writing to a connection.}
35
+the object. If it is a \link[BiocIO:BiocFile-class]{BiocFile} derivative, the
36
+data is loaded from or saved to the underlying resource. If missing, the
37
+function will return the output as a character vector, rather than writing
38
+to a connection.}
38 39
 
39 40
 \item{format}{The format of the output. If missing and \code{con} is a
40 41
 file name, the format is derived from the file extension. This argument is
41
-unnecessary when \code{con} is a derivative of \linkS4class{BiocFile}.}
42
+unnecessary when \code{con} is a derivative of \link[BiocIO:BiocFile-class]{BiocFile}.}
42 43
 
43 44
 \item{text}{If \code{con} is missing, this can be a character vector directly
44 45
 providing the string data to import.}
Browse code

add metadata methods and append to outputs

LiNk-NY authored on 18/10/2024 22:04:04
Showing 1 changed files
... ...
@@ -7,6 +7,7 @@
7 7
 \alias{path,TENxFileList-method}
8 8
 \alias{decompress,TENxFileList-method}
9 9
 \alias{import,TENxFileList,ANY,ANY-method}
10
+\alias{metadata,TENxFileList-method}
10 11
 \title{TENxFileList: A list-like representation for TENxFiles}
11 12
 \usage{
12 13
 \S4method{path}{TENxFileList}(object, ...)
... ...
@@ -14,6 +15,8 @@
14 15
 \S4method{decompress}{TENxFileList}(manager, con, ...)
15 16
 
16 17
 \S4method{import}{TENxFileList,ANY,ANY}(con, format, text, ...)
18
+
19
+\S4method{metadata}{TENxFileList}(x, ...)
17 20
 }
18 21
 \arguments{
19 22
 \item{object}{
... ...
@@ -22,9 +25,7 @@
22 25
     number of paths.
23 26
   }
24 27
 
25
-\item{...}{
26
-    Additional arguments, for use in specific methods.
27
-  }
28
+\item{...}{Additional arguments (not used)}
28 29
 
29 30
 \item{manager}{A \code{ConnectionManager} internal instance; currently not used.}
30 31
 
... ...
@@ -41,6 +42,9 @@ unnecessary when \code{con} is a derivative of \linkS4class{BiocFile}.}
41 42
 
42 43
 \item{text}{If \code{con} is missing, this can be a character vector directly
43 44
 providing the string data to import.}
45
+
46
+\item{x}{An object of class \code{TENxFile}, \code{TENxFileList}, \code{TENxMTX}, \code{TENxH5},
47
+\code{TENxPeaks}, \code{TENxTSV}, or derivatives}
44 48
 }
45 49
 \value{
46 50
 A \code{TENxFileList} class object
... ...
@@ -76,6 +80,8 @@ as a vector
76 80
 \item \code{import(con = TENxFileList, format = ANY, text = ANY)}: Recursively import files within a
77 81
 \code{TENxFileList}
78 82
 
83
+\item \code{metadata(TENxFileList)}: \code{metadata} method for \code{TENxFileList} objects
84
+
79 85
 }}
80 86
 \section{Slots}{
81 87
 
Browse code

set ref to be first observed value in table(rowData[["Type"]])

LiNk-NY authored on 23/09/2024 20:26:43
Showing 1 changed files
... ...
@@ -59,6 +59,11 @@ identifiers
59 59
 Note that version '2' includes \code{genes.tsv.gz} instead of \code{features.tsv.gz} in
60 60
 version '3'.
61 61
 }
62
+
63
+An additional \code{ref} argument can be provided when the file contains
64
+multiple \code{feature_type} in the file or "Type" in the \code{rowData}. By default,
65
+the first type reported in \code{table()} is set as the \code{mainExpName} in the
66
+\code{SingleCellExperiment} object.
62 67
 }
63 68
 \section{Functions}{
64 69
 \itemize{
Browse code

update roxygen version

LiNk-NY authored on 19/01/2023 21:11:45
Showing 1 changed files
... ...
@@ -28,23 +28,19 @@
28 28
 
29 29
 \item{manager}{A \code{ConnectionManager} internal instance; currently not used.}
30 30
 
31
-\item{con}{ The connection from which data is loaded or to which data
32
-    is saved. If this is a character vector, it is assumed to be a
33
-    filename and a corresponding file connection is created and then
34
-    closed after exporting the object. If a \code{\linkS4class{BiocFile}}
35
-    derivative, the data is loaded from or saved to the underlying
36
-    resource. If missing, the function will return the output as a
37
-    character vector, rather than writing to a connection.
38
-  }
31
+\item{con}{The connection from which data is loaded or to which data is
32
+saved. If this is a \code{character} vector, it is assumed to be a file name and
33
+a corresponding file connection is created and then closed after exporting
34
+the object. If it is a \linkS4class{BiocFile} derivative, the data is loaded from
35
+or saved to the underlying resource. If missing, the function will return
36
+the output as a character vector, rather than writing to a connection.}
39 37
 
40
-\item{format}{ The format of the output. If missing and \code{con} is
41
-    a filename, the format is derived from the file extension. This
42
-    argument is unnecessary when \code{con} is a derivative of
43
-    \code{\linkS4class{BiocFile}}.
44
-  }
38
+\item{format}{The format of the output. If missing and \code{con} is a
39
+file name, the format is derived from the file extension. This argument is
40
+unnecessary when \code{con} is a derivative of \linkS4class{BiocFile}.}
45 41
 
46
-\item{text}{ If \code{con} is missing, this can be a character vector
47
-    directly providing the string data to import. }
42
+\item{text}{If \code{con} is missing, this can be a character vector directly
43
+providing the string data to import.}
48 44
 }
49 45
 \value{
50 46
 A \code{TENxFileList} class object
Browse code

updates to docs from previous changes

LiNk-NY authored on 17/10/2022 17:14:00
Showing 1 changed files
... ...
@@ -60,6 +60,8 @@ These tarballs usually contain three files:
60 60
 \item \code{features.tsv.gz} - row metadata usually represented as \code{rowData}
61 61
 \item \code{barcodes.tsv.gz} - column names corresponding to cell barcode
62 62
 identifiers
63
+Note that version '2' includes \code{genes.tsv.gz} instead of \code{features.tsv.gz} in
64
+version '3'.
63 65
 }
64 66
 }
65 67
 \section{Functions}{
Browse code

update docs for slots

LiNk-NY authored on 06/10/2022 15:16:39
Showing 1 changed files
... ...
@@ -82,5 +82,8 @@ as a vector
82 82
 \item{\code{extension}}{character() A vector of file extensions for each file}
83 83
 
84 84
 \item{\code{compressed}}{logical(1) Whether the file is compressed as \code{.tar.gz}}
85
+
86
+\item{\code{version}}{character(1) The version number of the tarball usually either
87
+'2' or '3'}
85 88
 }}
86 89
 
Browse code

add and update \value sections in docs

LiNk-NY authored on 24/08/2022 22:58:22
Showing 1 changed files
... ...
@@ -46,6 +46,9 @@
46 46
 \item{text}{ If \code{con} is missing, this can be a character vector
47 47
     directly providing the string data to import. }
48 48
 }
49
+\value{
50
+A \code{TENxFileList} class object
51
+}
49 52
 \description{
50 53
 This class was designed to mainly handle tarballs from
51 54
 10X Genomics. The typical file extension for these tarballs is \code{.tar.gz}.
Browse code

remove old example

LiNk-NY authored on 03/08/2022 20:00:31
Showing 1 changed files
... ...
@@ -81,10 +81,3 @@ as a vector
81 81
 \item{\code{compressed}}{logical(1) Whether the file is compressed as \code{.tar.gz}}
82 82
 }}
83 83
 
84
-\examples{
85
-
86
-fl <- "~/data/10x/pbmc_3k/pbmc_granulocyte_sorted_3k_filtered_feature_bc_matrix.tar.gz"
87
-con <- TENxFileList(fl)
88
-import(con)
89
-
90
-}
Browse code

roxygen bump

LiNk-NY authored on 03/08/2022 14:30:01
Showing 1 changed files
... ...
@@ -61,16 +61,16 @@ identifiers
61 61
 }
62 62
 \section{Functions}{
63 63
 \itemize{
64
-\item \code{path,TENxFileList-method}: Obtain file paths for all files in the object
64
+\item \code{path(TENxFileList)}: Obtain file paths for all files in the object
65 65
 as a vector
66 66
 
67
-\item \code{decompress,TENxFileList-method}: An intermediate method for decompressing
67
+\item \code{decompress(TENxFileList)}: An intermediate method for decompressing
68 68
 (via untar) the contents of a \code{.tar.gz} file list
69 69
 
70
-\item \code{import,TENxFileList,ANY,ANY-method}: Recursively import files within a
70
+\item \code{import(con = TENxFileList, format = ANY, text = ANY)}: Recursively import files within a
71 71
 \code{TENxFileList}
72
-}}
73 72
 
73
+}}
74 74
 \section{Slots}{
75 75
 
76 76
 \describe{
Browse code

pass checks with updates

LiNk-NY authored on 15/07/2022 21:42:17
Showing 1 changed files
... ...
@@ -26,6 +26,8 @@
26 26
     Additional arguments, for use in specific methods.
27 27
   }
28 28
 
29
+\item{manager}{A \code{ConnectionManager} internal instance; currently not used.}
30
+
29 31
 \item{con}{ The connection from which data is loaded or to which data
30 32
     is saved. If this is a character vector, it is assumed to be a
31 33
     filename and a corresponding file connection is created and then
Browse code

documentation updates

LiNk-NY authored on 14/07/2022 16:58:36
Showing 1 changed files
... ...
@@ -25,6 +25,24 @@
25 25
 \item{...}{
26 26
     Additional arguments, for use in specific methods.
27 27
   }
28
+
29
+\item{con}{ The connection from which data is loaded or to which data
30
+    is saved. If this is a character vector, it is assumed to be a
31
+    filename and a corresponding file connection is created and then
32
+    closed after exporting the object. If a \code{\linkS4class{BiocFile}}
33
+    derivative, the data is loaded from or saved to the underlying
34
+    resource. If missing, the function will return the output as a
35
+    character vector, rather than writing to a connection.
36
+  }
37
+
38
+\item{format}{ The format of the output. If missing and \code{con} is
39
+    a filename, the format is derived from the file extension. This
40
+    argument is unnecessary when \code{con} is a derivative of
41
+    \code{\linkS4class{BiocFile}}.
42
+  }
43
+
44
+\item{text}{ If \code{con} is missing, this can be a character vector
45
+    directly providing the string data to import. }
28 46
 }
29 47
 \description{
30 48
 This class was designed to mainly handle tarballs from
Browse code

include docs for slots

LiNk-NY authored on 14/07/2022 02:32:40
Showing 1 changed files
... ...
@@ -15,6 +15,17 @@
15 15
 
16 16
 \S4method{import}{TENxFileList,ANY,ANY}(con, format, text, ...)
17 17
 }
18
+\arguments{
19
+\item{object}{
20
+    An object containing paths. Even though it will typically contain
21
+    a single path, \code{object} can actually contain an arbitrary
22
+    number of paths.
23
+  }
24
+
25
+\item{...}{
26
+    Additional arguments, for use in specific methods.
27
+  }
28
+}
18 29
 \description{
19 30
 This class was designed to mainly handle tarballs from
20 31
 10X Genomics. The typical file extension for these tarballs is \code{.tar.gz}.
Browse code

import decompress generic from BiocIO

LiNk-NY authored on 13/07/2022 20:22:53
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@
11 11
 \usage{
12 12
 \S4method{path}{TENxFileList}(object, ...)
13 13
 
14
-\S4method{decompress}{TENxFileList}(object, ...)
14
+\S4method{decompress}{TENxFileList}(manager, con, ...)
15 15
 
16 16
 \S4method{import}{TENxFileList,ANY,ANY}(con, format, text, ...)
17 17
 }
Browse code

export decompress, doc TENxFileList constructor and class

LiNk-NY authored on 24/06/2022 21:40:39
Showing 1 changed files
... ...
@@ -5,9 +5,15 @@
5 5
 \alias{TENxFileList-class}
6 6
 \alias{.TENxFileList}
7 7
 \alias{path,TENxFileList-method}
8
+\alias{decompress,TENxFileList-method}
9
+\alias{import,TENxFileList,ANY,ANY-method}
8 10
 \title{TENxFileList: A list-like representation for TENxFiles}
9 11
 \usage{
10 12
 \S4method{path}{TENxFileList}(object, ...)
13
+
14
+\S4method{decompress}{TENxFileList}(object, ...)
15
+
16
+\S4method{import}{TENxFileList,ANY,ANY}(con, format, text, ...)
11 17
 }
12 18
 \description{
13 19
 This class was designed to mainly handle tarballs from
... ...
@@ -18,13 +24,20 @@ These tarballs usually contain three files:
18 24
 \enumerate{
19 25
 \item \code{matrix.mtx.gz} - the counts matrix
20 26
 \item \code{features.tsv.gz} - row metadata usually represented as \code{rowData}
21
-\item \code{barcodes.tsv.gz} - column names corresponding to cell barcode identifiers
27
+\item \code{barcodes.tsv.gz} - column names corresponding to cell barcode
28
+identifiers
22 29
 }
23 30
 }
24 31
 \section{Functions}{
25 32
 \itemize{
26 33
 \item \code{path,TENxFileList-method}: Obtain file paths for all files in the object
27 34
 as a vector
35
+
36
+\item \code{decompress,TENxFileList-method}: An intermediate method for decompressing
37
+(via untar) the contents of a \code{.tar.gz} file list
38
+
39
+\item \code{import,TENxFileList,ANY,ANY-method}: Recursively import files within a
40
+\code{TENxFileList}
28 41
 }}
29 42
 
30 43
 \section{Slots}{
... ...
@@ -37,3 +50,10 @@ as a vector
37 50
 \item{\code{compressed}}{logical(1) Whether the file is compressed as \code{.tar.gz}}
38 51
 }}
39 52
 
53
+\examples{
54
+
55
+fl <- "~/data/10x/pbmc_3k/pbmc_granulocyte_sorted_3k_filtered_feature_bc_matrix.tar.gz"
56
+con <- TENxFileList(fl)
57
+import(con)
58
+
59
+}
Browse code

update docs

LiNk-NY authored on 22/06/2022 19:01:45
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,39 @@
1
+% Generated by roxygen2: do not edit by hand
2
+% Please edit documentation in R/TENxFileList-class.R
3
+\docType{class}
4
+\name{TENxFileList-class}
5
+\alias{TENxFileList-class}
6
+\alias{.TENxFileList}
7
+\alias{path,TENxFileList-method}
8
+\title{TENxFileList: A list-like representation for TENxFiles}
9
+\usage{
10
+\S4method{path}{TENxFileList}(object, ...)
11
+}
12
+\description{
13
+This class was designed to mainly handle tarballs from
14
+10X Genomics. The typical file extension for these tarballs is \code{.tar.gz}.
15
+}
16
+\details{
17
+These tarballs usually contain three files:
18
+\enumerate{
19
+\item \code{matrix.mtx.gz} - the counts matrix
20
+\item \code{features.tsv.gz} - row metadata usually represented as \code{rowData}
21
+\item \code{barcodes.tsv.gz} - column names corresponding to cell barcode identifiers
22
+}
23
+}
24
+\section{Functions}{
25
+\itemize{
26
+\item \code{path,TENxFileList-method}: Obtain file paths for all files in the object
27
+as a vector
28
+}}
29
+
30
+\section{Slots}{
31
+
32
+\describe{
33
+\item{\code{listData}}{list() The data in list format}
34
+
35
+\item{\code{extension}}{character() A vector of file extensions for each file}
36
+
37
+\item{\code{compressed}}{logical(1) Whether the file is compressed as \code{.tar.gz}}
38
+}}
39
+