Git Product home page Git Product logo

scripts's Introduction

About these scripts

This is a collection of scripts written over the years to solve specific problems. Some of them are well tested, others not so well. As they have been written over a period of 13+ years, the style and quality vary considerably.

USE AT YOUR OWN RISK

These programs are provided as is, without any implied garanty of usefulness.

Licensing

Read the LICENSE file for information about the license affecting these files

scripts's People

Contributors

enormandeau avatar sdanzige avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

scripts's Issues

Tidy up

  • Regroup scripts by categories
  • Include folders for pipelines
    • Subfolders for versions

ERROR with fastqCombinePairedEnd.py

Hello,
I am trying to re-sync some illimina read files after phix filtering using your script but I am getting this error:

IOError: [Errno 2] No such file or directory: 'no_phix/T1-3-F_CGAGCGAC-TACGAGAC_L001_R1_001.fastq.gz.nophix.fastq.nophix.fastq_pairs_R1.fastq'
Traceback (most recent call last):
File "../fastqCombinePairedEnd.py", line 97, in
with myopen(in1 + "_pairs_R1" + outSuffix, "w") as out1:
File "../fastqCombinePairedEnd.py", line 66, in myopen
return open(infile, mode=mode)
IOError: [Errno 2] No such file or directory: 'no_phix/T4-1-C_CGAGCGAC-ACGTCTCG_L001_R1_001.fastq.gz.nophix.fastq.nophix.fastq_pairs_R1.fastq'
Traceback (most recent call last):
File "../fastqCombinePairedEnd.py", line 97, in
with myopen(in1 + "_pairs_R1" + outSuffix, "w") as out1:
File "../fastqCombinePairedEnd.py", line 66, in myopen
return open(infile, mode=mode)

Those are how the file names look like and are inside a folder called no_phix:
T1-3-F_CGAGCGAC-TACGAGAC_L001_R2_001.fastq.gz.nophix.fastq
T4-1-C_CGAGCGAC-ACGTCTCG_L001_R1_001.fastq.gz.nophix.fastq
T4-1-F_CGAGCGAC-GATCGTGT_L001_R1_001.fastq.gz.nophix.fastq
...

And this is my code:
ls no_phix/*nophix.fastq > fastq_nophix.list
cd no_phix
while read R1
do read R2
python ../fastqCombinePairedEnd.py $R1.nophix.fastq $R2.nophix.fastq
done < ../fastq_nophix.list

Thank you so much in advance,
G.

Not getting the right results?

Hi

My headers look like this:
@NS500278:91:HK23CBGX2:2:13212:11182:16700/1
And
@NS500278:91:HK23CBGX2:1:11101:23209:1052/2

This is how I used the script:

python ResynchroniseFastq.py BAEL_R1_Final_Header.fastq BAEL_R2_Final_Header.fastq None

but every thing seems to be going in the singles file.

Am I doing something wrong?

fastqCombinePairedEnd.py

Hello,

I'm trying to use your script to match two fastq files from an old illumina format (R1 and R3) (R2 contained barcodes).

I've already demultiplexed them with the barcodes on R2 and now I got my two fastq files (R1 and R3) with the sample names included.

My files look like this (4 lines per read), but I'm not sure if the header format it's ok for your script match paired reads on both files..

R1.fastq:
@sample1 MISEQ:154:000000000-A4PK2:1:2114:14962:29218 1:Y:0: orig_bc=CGTTAGCA new_bc=CGTTAGCA bc_diffs=0

R3.fastq:
@sample1 MISEQ:154:000000000-A4PK2:1:2114:14962:29218 3:Y:0: orig_bc=CGTTAGCA new_bc=CGTTAGCA bc_diffs=0

Apparently script is working. I've checked a few of the samples and seem to be well paired in both output files. But I would like if you can confirm me this.

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.