Skip to content

Instantly share code, notes, and snippets.

View adefelicibus's full-sized avatar

Alexandre Defelicibus adefelicibus

  • A.C.Camargo
  • Brazil
View GitHub Profile
@lindenb
lindenb / README.md
Last active June 23, 2023 19:41
How to linearize a FASTA sequence using awk.

Linearize a fasta sequence

awk -f linearizefasta.awk < input.fa

or

awk '/^&gt;/ {printf("%s%s\t",(N&gt;0?"\n":""),$0);N++;next;} {printf("%s",$0);} END {printf("\n");}' &lt; input.fa
@slowkow
slowkow / GTF.py
Last active March 6, 2024 02:05
GTF.py is a simple module for reading GTF and GFF files
#!/usr/bin/env python
"""
GTF.py
Kamil Slowikowski
December 24, 2013
Read GFF/GTF files. Works with gzip compressed files and pandas.
http://useast.ensembl.org/info/website/upload/gff.html