-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
67 additions
and
26 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
====================================================== | ||
pyrpipe | ||
====================================================== | ||
************ | ||
pyrpipe API | ||
************ | ||
|
||
Specifying RNA-Seq data | ||
sra | ||
======================= | ||
|
||
Use the :py:mod:`sra` module to create an :class:`SRA` object:: | ||
The :py:mod:`sra` module contains the SRA class. | ||
|
||
from pyrpipe import sra | ||
sra_obj = sra.SRA(srr_accession="SRR976159") | ||
|
||
After the object is created, download the raw data to disk using the | ||
:meth:`SRA.download_sra` method:: | ||
sra_obj.download_sra() | ||
This will download the raw data in .sra format. | ||
To convert .sra file to fastq, use :meth:`SRA.run_fasterqdump` method:: | ||
SRA | ||
^^^^ | ||
The :class:`SRA` class encapsulates RNA-Seq data. | ||
|
||
sra_obj.run_fasterqdump() | ||
|
||
The sra_obj will keep track of all the downloaded data. The location of downloaded data could be accesed by:: | ||
assembly | ||
========= | ||
The :py:mod:`assembly` module contains classes for transcript assembly tools. | ||
|
||
sra_obj.location | ||
mapping | ||
========= | ||
The :py:mod:`mapping` module contains classes for read alignment. | ||
|
||
To get the paths to sra of fastq files, use:: | ||
|
||
sra_obj.localSRAFilePath | ||
sra_obj.localfastqPath | ||
#for paired | ||
sra_obj.localfastq1Path | ||
sra_obj.localfastq1Path | ||
quant | ||
========= | ||
The :py:mod:`quant` module contains classes for transcript quantification tools. | ||
|
||
qc | ||
========= | ||
The :py:mod:`qc` module contains classes for fastq quality control tools. | ||
|
||
Performing read alignment | ||
========================= | ||
|
||
tools | ||
========= | ||
The :py:mod:`tools` module contains classes for various RNA-Seq tools. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
====================================================== | ||
Basic usage | ||
====================================================== | ||
|
||
Specifying RNA-Seq data | ||
======================= | ||
|
||
Use the :py:mod:`sra` module to create an :class:`SRA` object:: | ||
|
||
from pyrpipe import sra | ||
sra_obj = sra.SRA(srr_accession="SRR976159") | ||
|
||
After the object is created, download the raw data to disk using the | ||
:meth:`SRA.download_sra` method:: | ||
sra_obj.download_sra() | ||
This will download the raw data in .sra format. | ||
To convert .sra file to fastq, use :meth:`SRA.run_fasterqdump` method:: | ||
|
||
sra_obj.run_fasterqdump() | ||
|
||
The sra_obj will keep track of all the downloaded data. The location of downloaded data could be accesed by:: | ||
|
||
sra_obj.location | ||
|
||
To get the paths to sra of fastq files, use:: | ||
|
||
sra_obj.localSRAFilePath | ||
sra_obj.localfastqPath | ||
#for paired | ||
sra_obj.localfastq1Path | ||
sra_obj.localfastq1Path | ||
|
||
|
||
Performing read alignment | ||
========================= | ||
The :py:mod:`mapping` module contains several classes to access read alignment tools. | ||
The method :meth:`perform_alignment` can be used with the SRA object. | ||
An example using Hisat2:: | ||
hs=mapping.Hisat2(hisat2_index="",**hsOpts) | ||
hs.perform_alignment(ob,**{"-p":"10"}) |