Coder Social home page Coder Social logo

miseq-samplesheet-parser's Introduction

MiSeq SampleSheet.csv Parser

Parse illumina MiSeq SampleSheet.csv files and convert to JSON

Usage

samplesheet_parser.py SampleSheet.csv
samplesheet_parser.py SampleSheet.csv | python -m json.tool

Example Input & Output

Input

[Header]
IEMFileVersion,5
Investigator Name,Dr. Sequencer
Experiment Name,Truly Insightful Experiment
Date,10/08/2020
Workflow,GenerateFASTQ
Application,FASTQ Only
Instrument Type,MiSeq
Assay,Nextera DNA Flex
Index Adapters,Nextera DNA CD Indexes (96 Indexes plated)
Description,Our most precious samples
Chemistry,Amplicon
[Reads]
251
251
[Settings]
ReverseComplement,0
Adapter,CTGTCTCTTATACACATCT
[Data]
Sample_ID,Sample_Name,Sample_Plate,Sample_Well,Index_Plate_Well,I7_Index_ID,index,I5_Index_ID,index2,Sample_Project,Description
S1,SAMPLE_01,,,A01,H701,TAAGGCGA,H505,GTAAGGAG,,,
S2,SAMPLE_02,,,B01,H702,CGTACTAG,H517,GCGTAAGA,,,

Output

{
    "header": {
        "iemfileversion": "5",
        "investigator_name": "Dr. Sequencer",
        "experiment_name": "Truly Insightful Experiment",
        "date": "10/08/2020",
        "workflow": "GenerateFASTQ",
        "application": "FASTQ Only",
        "instrument_type": "MiSeq",
        "assay": "Nextera DNA Flex",
        "index_adapters": "Nextera DNA CD Indexes (96 Indexes plated)",
        "description": "Our most precious samples",
        "chemistry": "Amplicon"
    },
    "reads": [
        251,
        251
    ],
    "settings": {
        "adapter": "CTGTCTCTTATACACATCT",
        "reversecomplement": "0"
    }
    "data": [
        {
            "sample_id": "S1",
            "sample_name": "SAMPLE_01",
            "sample_plate": "",
            "sample_well": "",
            "index_plate_well": "A01",
            "i7_index_id": "H701",
            "index": "TAAGGCGA",
            "i5_index_id": "H505",
            "index2": "GTAAGGAG",
            "sample_project": "",
            "description": ""
        },
        {
            "sample_id": "S2",
            "sample_name": "SAMPLE_02",
            "sample_plate": "",
            "sample_well": "",
            "index_plate_well": "B01",
            "i7_index_id": "H702",
            "index": "CGTACTAG",
            "i5_index_id": "H517",
            "index2": "GCGTAAGA",
            "sample_project": "",
            "description": ""
        }
    ]
}

miseq-samplesheet-parser's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.