Skip to content

Instantly share code, notes, and snippets.

View mikisvaz's full-sized avatar

Miguel Vazquez mikisvaz

  • Barcelona Supercomputing Center
  • Spain
View GitHub Profile
@mikisvaz
mikisvaz / gist:47ae9b3d9bb93412ff286d1047bc1cc1
Last active March 28, 2023 18:10
DEBUG output for issue "Can't destroy or refresh failed host"
2023-03-28T20:09:37.031+0200 [INFO] Terraform version: 1.2.9
2023-03-28T20:09:37.031+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.0.0
2023-03-28T20:09:37.031+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.12.0
2023-03-28T20:09:37.031+0200 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-03-28T20:09:37.031+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2023-03-28T20:09:37.031+0200 [DEBUG] using github.com/zclconf/go-cty v1.11.0
2023-03-28T20:09:37.031+0200 [INFO] Go runtime version: go1.18.1
2023-03-28T20:09:37.031+0200 [INFO] CLI args: []string{"terraform", "destroy"}
2023-03-28T20:09:37.032+0200 [DEBUG] Attempting to open CLI config file: /home/miki/.terraformrc
2023-03-28T20:09:37.032+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
@mikisvaz
mikisvaz / signs.rb
Created July 27, 2022 12:52
How signs are calculated in rbbt decoupler sandbox
### This loop is run for each pair
# sign_evidence_pmids will hold the list of PMIDS support each sign: +,
# -, and ~ (unknown or not specified)
sign_evidence_pmids = {"+" => [], "-" => [], "~" => []}
Misc.zip_fields(values.reverse).each do |e,s|
s = "" if s.nil?
sign_evidence_pmids[s] = e.split(";")
end
require 'rbbt-util'
require 'rbbt/workflow'
require 'rbbt/workflow/remote_workflow'
module HTSBenchmark
Rbbt.claim Rbbt.share.data.studies.GIAB do |directory|
`wget <url1.bam> -O #{directory}/data/sample1.bam`
`wget <url2.bam> -O #{directory}/data/sample2.bam`
`wget <url3.bam> -O #{directory}/data/sample3.bam`
@mikisvaz
mikisvaz / gist:a65cb99bbf0d7a61f0d41f4e0ca02540
Created February 12, 2019 11:14
Gue code to tie NGS data in project to HTS workflow
extension :bam
dep HTS, :BAM_rescore,
:fastq1 => :placeholder, :fastq2 => :placeholder, :reference => :placeholder,
:sample_name => :placeholder,
:platform_unit => :placeholder,
:read_group_name => :placeholder,
:sequencing_center => "CNAG",
:platform => 'Illuimna',
:library_name => 'LN',
:interval_list => Bellmunt.interval_list do |jobname,options|
module Sequence
def self.ablated_domains(mi, organism=Organism.default_code("Hsa"))
require 'rbbt/sources/InterPro'
@@ensp2uni ||= Organism.identifiers(organism).index :target => "UniProt/SwissProt Accession", :persist => true, :fields => ["Ensembl Protein ID"], :unnamed => true
@@domain_info ||= InterPro.protein_domains.tsv :persist => true, :unnamed => true
return [] unless mi =~ /:.*(\d+)(FrameShift|\*)$/
pos = $1.to_i
protein = mi.partition(":")[0]
model Intersect
def self.intersect_streams_read(io, sep=":")
line = io.gets.strip
parts = line.split(sep)
chr, start, eend, *rest = parts
[line,chr, start.to_i, eend.to_i, rest]
end
def self.intersect_streams(f1, f2, out, sep=":")
finish = false
---
public/javascripts/culerity.js | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/public/javascripts/culerity.js b/public/javascripts/culerity.js
index 2db12c9..d12df5e 100644
--- a/public/javascripts/culerity.js
+++ b/public/javascripts/culerity.js
Gem::Specification.new do |s|
s.name = %q{simplews}
s.version = "1.3.3"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Miguel Vazquez"]
s.date = %q{2009-09-22}
s.description = %q{This defines a class that can simplifies creating Web Services. It inherits from soap2r's SOAP::RPC::StandaloneServer and provides a few enhancements, the most important the fact that it is able to produce the WSDL automatically.}
s.email = ["mikisvaz@yahoo.com"]
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "website/index.txt"]