Code Monkey home page Code Monkey logo

seq-genomics's Introduction

Genome Sequencing with Seq

Solutions (spoilers!) for Coursera Bioinformatics / Stepik Genome Sequencing course with Seq

Motivation

I've always wanted to learn Bioinformatics / Genome Sequencing. Seq-lang's debut last week is the prefect catalyst for starting.

Seq seems like the perfect tool since it was created specifically for the job. The downside is that it is too young, so many features and "batteries" you expect from python, the language it is based on, are missing. In addition, the following some of the things I felt missing working on the problem set:

  • functools
  • better parse errors
  • splat / unpack
  • defaultdict

That being said, its speed, statical typing, pipeline operator |>, and similarities with python have made me overlook its early drawbacks easily.

Setup and Running

  1. Follow instructions to Install

  2. Setup your editor to associate .seq as python.

  3. Run via seqc FILE.seq ARG, eg.:

seqc stepik/1-1.seq 1   # run exercise 1 in stepik/1-1.seq
seqc stepik/1-1.seq 2-4 # run exercise 2-4 in stepik/1-1.seq
seqc stepik/1-1.seq     # run all exercises in stepik/1-1.seq

Seq Language Notes

Iteration

Not sure if

for kmr in dna.kmers[Kmer[4]](1):

is faster than

for kmr in dna.split(k, 1):

or not, but since Kmer[n] requires n to be a compile time constant, it' not too useful here.

Hamming Distance

abs(k1 - k2) # vs. len([1 for i in range(len(k1)) if k1[i] != k2[i]])

Missing Features

reversed=bool in .sort() or sorted(), so using [::-1]

lambda - Need to define and pass the function

seq-genomics's People

Stargazers

 avatar  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.