Mercurial > repos > matthias > dada2_makesequencetable
comparison dada2_datatype.py @ 2:d2e7c5f8a9f7 draft
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/topic/dada2/tools/dada2 commit 5b1603bbcd3f139cad5c876be83fcb39697b5613-dirty
| author | matthias |
|---|---|
| date | Tue, 09 Apr 2019 07:10:43 -0400 |
| parents | 98e24c66eeb2 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:f2abdc9a849c | 2:d2e7c5f8a9f7 |
|---|---|
| 32 self.column_names = ['unique sequence', 'abundance'] | 32 self.column_names = ['unique sequence', 'abundance'] |
| 33 | 33 |
| 34 class dada_dada( RData ): | 34 class dada_dada( RData ): |
| 35 """ | 35 """ |
| 36 datatype for dada2's dada-class | 36 datatype for dada2's dada-class |
| 37 | |
| 38 note: intended to implement this as table + Rdata like the other data types | |
| 39 problem is that in non-batch mode the dada wrapper uses discover_datasets | |
| 40 to get the collection elements and there is currently no way to set extra | |
| 41 files when doing this. | |
| 37 """ | 42 """ |
| 38 file_ext = "dada2_dada" | 43 file_ext = "dada2_dada" |
| 39 blurb = "result of dada" | 44 blurb = "result of dada" |
| 40 | 45 |
| 41 class dada_errorrates( Tabular ): | 46 class dada_errorrates( Tabular ): |
| 44 | 49 |
| 45 - table shows the $err_out member of the list | 50 - table shows the $err_out member of the list |
| 46 - additional file contains the Rdata | 51 - additional file contains the Rdata |
| 47 """ | 52 """ |
| 48 file_ext = "dada2_errorrates" | 53 file_ext = "dada2_errorrates" |
| 54 composite_type = 'basic' | |
| 49 blurb = "learned error rates" | 55 blurb = "learned error rates" |
| 50 def __init__(self, **kwd): | 56 def __init__(self, **kwd): |
| 51 """Initialize derep datatype""" | 57 """Initialize derep datatype""" |
| 52 super(dada_errorrates, self).__init__(**kwd) | 58 super(dada_errorrates, self).__init__(**kwd) |
| 53 self.add_composite_file( 'Rdata', is_binary = True, optional = False ) | 59 self.add_composite_file( 'Rdata', is_binary = True, optional = False ) |
| 58 datatype for dada2's result of mergePairs (a data frame) | 64 datatype for dada2's result of mergePairs (a data frame) |
| 59 | 65 |
| 60 - the data is stored as table (wo additional Rdata) | 66 - the data is stored as table (wo additional Rdata) |
| 61 """ | 67 """ |
| 62 file_ext = "dada2_mergepairs" | 68 file_ext = "dada2_mergepairs" |
| 69 composite_type = 'basic' | |
| 63 blurb = "merged reads" | 70 blurb = "merged reads" |
| 64 def __init__(self, **kwd): | 71 def __init__(self, **kwd): |
| 65 """Initialize derep datatype""" | 72 """Initialize derep datatype""" |
| 66 super(dada_mergepairs, self).__init__(**kwd) | 73 super(dada_mergepairs, self).__init__(**kwd) |
| 67 self.column_names = ['abundance', 'sequence', 'forward', 'reverse', 'nmatch', 'nmismatch', 'nindel', 'prefer', 'accept'] | 74 self.column_names = ['abundance', 'sequence', 'forward', 'reverse', 'nmatch', 'nmismatch', 'nindel', 'prefer', 'accept'] |
