Skip to content

Commit

Permalink
update assembly docs
Browse files Browse the repository at this point in the history
  • Loading branch information
urmi-21 committed Jan 15, 2020
1 parent 027aa3c commit dbae5ed
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions pyrpipe/assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ class Stringtie(Assembly):
Parameters
----------
reference_gtf: string
Path to the reference gtf file. If a valid gtf file is provided the option -G will be set to the gtf file. This can't
be overriden later when calling functions of this class.
arg2: dict
kwargs: dict
Options passed to stringtie. Some of these could be overridden later when calling functions of this class.
Format to pass the arguments:
"""
Expand Down Expand Up @@ -118,14 +119,14 @@ def perform_assembly(self,bam_file,out_dir="",out_suffix="_stringtie",overwrite=

def stringtie_merge(self,*args,out_suffix="_stringtieMerge",overwrite=True,verbose=False,quiet=False,logs=True,objectid="NA",**kwargs):
"""Function to run stringtie merge.
Parameters
----------
args: tuple
path to gtf files to merge
out_suffix: string
Suffix for output gtf file name
arg2: tuple
input Gtf files
overwrite: bool
Overwrite if output file already exists.
verbose: bool
Expand Down Expand Up @@ -182,6 +183,7 @@ def run_stringtie(self,verbose=False,quiet=False,logs=True,objectid="NA",**kwarg
Parameters
----------
verbose: bool
Print stdout and std error
quiet: bool
Expand Down Expand Up @@ -217,6 +219,9 @@ def run_stringtie(self,verbose=False,quiet=False,logs=True,objectid="NA",**kwarg

class Cufflinks(Assembly):
"""This class represents cufflinks
kwargs: dict
Parameters passed to cufflinks
"""
def __init__(self,reference_gtf="",**kwargs):

Expand Down Expand Up @@ -322,6 +327,7 @@ def run_cuff(self,command,verbose=False,quiet=False,logs=True,objectid="NA",**kw
Parameters
----------
command: string
the command name
verbose: bool
Expand All @@ -332,6 +338,8 @@ def run_cuff(self,command,verbose=False,quiet=False,logs=True,objectid="NA",**kw
Log this command to pyrpipe logs
objectid: str
Provide an id to attach with this command e.g. the SRR accession.
kwargs: dict
Options passed to command
:return: Returns the status of the command.
:rtype: bool
Expand Down Expand Up @@ -361,6 +369,7 @@ def run_cufflinks(self,verbose=False,quiet=False,logs=True,objectid="NA",**kwarg
Parameters
----------
verbose: bool
Print stdout and std error
quiet: bool
Expand Down Expand Up @@ -395,6 +404,9 @@ def run_cufflinks(self,verbose=False,quiet=False,logs=True,objectid="NA",**kwarg

class Trinity(Assembly):
"""This class represents Trinity RNA-Seq assembler
kwargs: dict
parametrs passed to Trinity
"""
def __init__(self,**kwargs):

Expand Down Expand Up @@ -426,6 +438,7 @@ def perform_assembly(self,sra_object=None,bam_file=None,out_dir="trinity_out_dir
Parameters
----------
sra_object: SRA
object of SRA class
bam_file: string
Expand All @@ -448,7 +461,7 @@ def perform_assembly(self,sra_object=None,bam_file=None,out_dir="trinity_out_dir
Provide an id to attach with this command e.g. the SRR accession.
kwargs: dict
Options to pass to stringtie. This will override the existing options self.passed_args_dict (only replace existing arguments and not replace all the arguments).
Options to pass to Trinity. This will override the existing options self.passed_args_dict (only replace existing arguments and not replace all the arguments).
:return: Return the path to output GTF file
:rtype: string
Expand Down Expand Up @@ -496,6 +509,7 @@ def run_trinity(self,verbose=False,quiet=False,logs=True,objectid="NA",**kwargs)
Parameters
----------
verbose: bool
Print stdout and std error
quiet: bool
Expand Down

0 comments on commit dbae5ed

Please sign in to comment.