Skip to content

Instantly share code, notes, and snippets.

View ypriverol's full-sized avatar
:octocat:
Coding

Yasset Perez-Riverol ypriverol

:octocat:
Coding
View GitHub Profile
@ypriverol
ypriverol / protein_fasta_filter.py
Created August 10, 2023 05:04
Filter a protein fasta with a file with a list of protein accessions
import sys
def read_protein_accessions(filename):
with open(filename, 'r') as file:
protein_accessions = [line.strip() for line in file.readlines()]
return protein_accessions
def read_proteins(input_fasta: str):
current_protein = None
current_sequence = ""
@ypriverol
ypriverol / meta.yaml
Created November 10, 2019 17:12
blast yaml file
{% set version = "2.7.1" %}
{% set sha256 = "10a78d3007413a6d4c983d2acbf03ef84b622b82bd9a59c6bd9fbdde9d0298ca" %}
package:
name: blast
version: {{ version }}
source:
url: https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/{{ version }}/ncbi-blast-{{ version }}+-src.tar.gz
sha256: {{ sha256 }}
################## BASE IMAGE ######################
FROM mono:latest
################## METADATA ######################
LABEL base_image="mono:latest"
LABEL version="1"
LABEL software="ThermoRawFileParser"
LABEL software.version="1.0.0"
LABEL about.summary="A software to convert Thermo RAW files to mgf and mzML"
LABEL about.home="https://github.com/compomics/ThermoRawFileParser"
diff --git a/recipes/amos/meta.yaml b/recipes/amos/meta.yaml
index 5e75a5e..65b4a20 100644
--- a/recipes/amos/meta.yaml
+++ b/recipes/amos/meta.yaml
@@ -1,10 +1,11 @@
+---
package:
name: amos
- version: "3.1.0"
+ version: 3.1.0
@ypriverol
ypriverol / yaml
Created October 11, 2017 21:11
Difference between files yaml
diff --git a/recipes/adam/meta.yaml b/recipes/adam/meta.yaml
index 378fae3..85b9a20 100644
--- a/recipes/adam/meta.yaml
+++ b/recipes/adam/meta.yaml
@@ -1,3 +1,4 @@
+---
{% set version="0.22.0" %}
about:
@@ -11,23 +12,25 @@ package: