GithubHelp home page GithubHelp logo

Comments (3)

heathsc avatar heathsc commented on August 13, 2024 1

from gembs.

IsmailM avatar IsmailM commented on August 13, 2024

Okay found a fix:

After adding a log-line to see the mapping process, I see that it attempts to run:

/home/ucbtmog/.pyenv/versions/3.5.3/lib/python3.5/site-packages/gemBS/gemBSbinaries/gem-mapper -I /home/ucbtmog/d/nugen/t/ref_indexes/hg37.BS.gem -i PCa_45_01b_S19_R1.fastq.gz -t 70 --report-file /home/ucbtmog/d/nugen/t/mapping/PCa_45_01b_S19/PCa_45_01b_S19.json -r @RG\\tID:PCa_45_01b_S19\\tSM:PCa_45_01b_S19\\tBC:PCa_45_01b_S19\\tPU:PCa_45_01b_S19

This gives me the following error message:

GEM::FatalError (fm.c:193,fm_open_file)
 Could not open file 'PCa_45_01b_S19_R1.fastq.gz'

Would be nice if this was reported in the error logs or in STDOUT

So the issue is that the full path to the input file is not passed to the tool.

Here is a fix:

gemBS/gemBS/production.py

Lines 480 to 503 in fca06d5

if len(mlist) == 1:
(file, m) = mlist[0]
skip = false
if ftype is None:
if m.group(4).lower() in ['SAM', 'BAM']:
ftype = 'BAM' if m.group(4).lower == 'BAM' else 'SAM'
else:
ftype = 'INTERLEAVED' if self.paired else 'SINGLE'
elif ftype == 'PAIRED' or (ftype == 'SAM' and m.group(4).lower != 'sam') or (ftype == 'BAM' and m.group(4).lower() != 'bam'): skip = True
if not skip: inputFiles.append(file)
elif len(mlist) == 2:
(file1, m1) = mlist[0]
(file2, m2) = mlist[1]
for ix in [1, 2, 4]:
if m1.group(ix) != m2.group(ix): break
else:
if (ftype == None or ftype == 'PAIRED') and m1.group(4) in ['fastq', 'fq', 'fasta', 'fa']:
if m1.group(3) == '1' and m2.group(3) == '2':
inputFiles = [os.path.join(input_dir,file1), os.path.join(input_dir,file2)]
elif m1.group(3) == '2' and m2.group(3) == '1':
inputFiles = [os.path.join(input_dir,file2), os.path.join(input_dir,file1)]
self.ftype = 'PAIRED'
self.paired = True

Specifically Line 490 should be changed to:

if not skip: inputFiles.append(os.path.join(input_dir,file))

This is similar to what is done with paired-end reads - see lines 499 & 451 above

from gembs.

heathsc avatar heathsc commented on August 13, 2024

Fix applied.

from gembs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.