rivas-lab / nanopore

Tools for analysis of long-read sequencing data.
0 stars 0 forks source link

Plots with poretools #5

Closed yk-tanigawa closed 7 years ago

yk-tanigawa commented 7 years ago
yk-tanigawa commented 7 years ago
yk-tanigawa commented 7 years ago
yk-tanigawa commented 7 years ago
yk-tanigawa commented 7 years ago
yk-tanigawa commented 7 years ago

analysis of the error

fastq_paths = {
  'closed' : {},
  'r9rnn' :         { 'template' : '/Analyses/Basecall_RNN_1D_%03d/BaseCalled_template'},
  'metrichor1.16' : { 'template' : '/Analyses/Basecall_1D_%03d/BaseCalled_template',
                      'complement' : '/Analyses/Basecall_1D_%03d/BaseCalled_complement',
                      'twodirections' : '/Analyses/Basecall_2D_%03d/BaseCalled_2D',
                      'pre_basecalled' : '/Analyses/EventDetection_000/Reads/'
                    },
  'classic' :       { 'template' : '/Analyses/Basecall_2D_%03d/BaseCalled_template',
                      'complement' : '/Analyses/Basecall_2D_%03d/BaseCalled_complement',
                      'twodirections' : '/Analyses/Basecall_2D_%03d/BaseCalled_2D',
                      'pre_basecalled' : '/Analyses/EventDetection_000/Reads/'
                    },
  'prebasecalled' : {'pre_basecalled' : '/Analyses/EventDetection_000/Reads/'}
}
    def guess_version(self):
        """
        Try and guess the location of template/complement blocks
        """
        try:
            self.hdf5file["/Analyses/Basecall_RNN_1D_%03d/BaseCalled_template" % (self.group)]
            return 'r9rnn'
        except KeyError:
            pass

        try:
            self.hdf5file["/Analyses/Basecall_2D_%03d/BaseCalled_template" % (self.group)]
            return 'classic'
        except KeyError:
            pass

        try:
            self.hdf5file["/Analyses/Basecall_1D_%03d/BaseCalled_template" % (self.group)]
            return 'metrichor1.16'
        except KeyError:
            pass

        return 'prebasecalled'