Giter VIP home page Giter VIP logo

problem-set-5's Introduction

Problem Set 5

| Due: 5pm on Apr 19

Workflow

See here for the general workflow.

Your answers should be in YAML format in a file called answers.yml at the top level of the repository.

# answers.yml should look like this:
answer-1: 123
answer-2: 456

Problem 1 (BED files)

Write a Python program to read the lamina.bed file and report the following:

  1. On what chromosome is the region with the largest start position (2nd column) in lamina.bed? (10 points)

  2. What is the region with the largest end position on chrY in lamina.bed? (10 points) Report as::

    chrom start end value region_length

Problem 2 (FASTQ files)

Use Python to read the SP1.fq file in the data-sets repository. Recall that FASTQ records are comprised of 4 sections; in this case each section will be on a unique line::

@cluster_2:UMI_ATTCCG             # record name
TTTCCGGGGCACATAATCTTCAGCCGGGCGC   # DNA sequence
+                                 # empty line; starts with '+'
9C;=;=<9@4868>9:67AA<9>65<=>591   # phred-scaled quality scores

Write a Python program to parse the FASTQ records and report the following:

  1. Which of the first 10 sequence records has the largest number of 'C' residues in the sequence? Report its record name (10 points).

  2. For each record, Covert each character in the quality score to a number, and sum the numbers. Use the python function ord to convert characters to numbers. Report the largest total quality score (10 points).

  3. Report the revese complement of each of the first 10 sequences (10 points). You will have to define a reverse_complement() method, or find one from another package.

Note that the reverse complement of 5'-AGCTCGTA-3' is 5'-TACGAGCT-3'.

problem-set-5's People

Contributors

jayhesselberth avatar lkwhite avatar

Watchers

 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.