tmux ls (or tmux list-sessions)
tmux new -s session-name
Ctrl-b d Detach from session
tmux attach -t [session name] or tmux a -t [session name]
tmux kill-session -t session-name
Ctrl-b c Create new window
Ctrl-b d Detach current client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import os | |
import sys | |
bed_file = sys.argv[1] | |
name = bed_file.split('.')[0] | |
#import bed into dataframe | |
header = ['Chr', 'Start', 'End', 'Gene'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import pandas as pd | |
#Get the worklist as a parameter | |
worklist_bioinfo = sys.argv[1] | |
#Create DataFrame from worklist | |
header = ['pool', 'analysis_type', 'exame', 'control', 'gender'] | |
worklist_df = pd.read_csv(worklist_bioinfo, header=None, names=header) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Bio.Seq import Seq | |
import pandas as pd | |
import csv | |
import sys | |
import os | |
def reverse_complement(sequence): | |
""" | |
Give me the sequence and I give you the reverse-complement of it | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env python3 | |
''' | |
Using exomedepth result and a bed file, organize a txt file with the exons in | |
the CNV region | |
usage: | |
python cnv_regions.py <path/to/exome_depth_output.txt> <path/to/bed_file.bed> <padding> | |
''' | |
__author__ = 'George Carvalho' |
- Docker é uma plataforma Open Source escrito em Go, que é uma linguagem de programação de alto desempenho desenvolvida dentro do Google, que facilita a criação e administração de ambientes isolados.
- Um commit em um repositório git registra uma fotografia (snapshot) de todos os arquivos no seu diretório. É como um grande copy&paste, mas ainda melhor!
- O Git tem por objetivo manter os commits tão leves quanto possível, de forma que ele não copia cegamente o diretório completo toda vez que você commita. Ele pode (quando possível) comprimir um commit como um conjunto de mudanças (ou um "delta") entre uma versão do seu repositório e a seguinte.
- O Git também mantém um histórico de quando ocorreu cada commit. É por isso que a maioria dos commits tem ancestrais acima de si -- que indicamos usando setas na nossa visualização. Manter a história é ótimo para todos que trabalham no projeto!
- Há muito para aprender, mas por enquanto pense nos commits como snapshots do seu projeto. Os commits são muito leves, e mudar de um para outro é extremamente rápido!
- Vejamos o que isso significa na prática. Abaixo, temos uma vis
Exomedepth:
$ awk -F"__" '$1=$1' OFS="\t" PAHC44_1_CDHS-17427Z-2274_sorted.bed | cut -f1,2,3,4 > qiaseq_PAHC44_1_CDHS-17427Z-2274_no_header.bed
DeviCNV:
$ echo -e "Amplicon_ID\tChr\tAmplicon_Start\tAmplicon_End\tInsert_Start\tInsert_End\tGene\tTranscript\tExon\tPool" > qiaseq_PAHC44_1_CDHS-17427Z-2274_no_header.devicnv.bed $ awk -F"__" '$1=$1' OFS="\t" PAHC44_1_CDHS-17427Z-2274_sorted.bed | awk '{ print $4"."$7"\t"$1"\t"$2"\t"$3"\t"$2"\t"$3"\t"$4"\t"$4"\t"$7"\t"Pool1}' >> qiaseq_PAHC44_1_CDHS-17427Z-2274_no_header.devicnv.bed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
from pyliftover import LiftOver | |
import pandas as pd | |
import argparse | |
import mapply | |
import sys | |
import os | |
mapply.init( |
OlderNewer