Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
| #!/usr/bin/env nextflow | |
| /* | |
| ################ | |
| NEXTFLOW Global Config | |
| ################ | |
| */ | |
| params.outdir = "results" |
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
I hereby claim:
To claim this, I am signing this object:
| #! /usr/bin/env nextflow | |
| import groovy.json.JsonSlurper | |
| import groovy.text.SimpleTemplateEngine | |
| import groovy.util.FileNameByRegexFinder | |
| import java.nio.file.Path | |
| import java.nio.file.Paths | |
| import nextflow.util.SysHelper | |
| PROGRAM_NAME = workflow.manifest.name | |
| VERSION = workflow.manifest.version |
| curl \ | |
| --retry 5 --continue-at - --max-time 1200 \ | |
| -L ftp.sra.ebi.ac.uk/vol1/fastq/SRR870/008/SRR8703878/SRR8703878_1.fastq.gz \ | |
| -o SRX5499459_SRR8703878_1.fastq.gz |
So, it has been an interesting journey, but time to remove git-lfs. Here follows a summary of the approach I used to safely remove git-lfs,
git lfs uninstallgit lfs ls-filesgit rm --cached for each file
| from azure.identity import DefaultAzureCredential | |
| from azure.mgmt.batch import BatchManagementClient | |
| import os | |
| from dotenv import load_dotenv | |
| import sys | |
| load_dotenv() | |
| AZURE_SUBSCRIPTION_ID = os.getenv('AZURE_SUBSCRIPTION_ID') | |
| AZURE_BATCH_RESOURCE_GROUP_NAME = os.getenv('AZURE_BATCH_RESOURCE_GROUP_NAME') |
| // Dont know why but it requires java 17 fx | |
| // sdk install 17.0.8.fx-zulu | |
| // sdk use java 17.0.8.fx-zulu | |
| @Grapes([ | |
| @Grab(group='org.scalamolecule', module='datomic-client-api-java-scala_2.13', version='1.0.3'), | |
| @Grab(group='com.datomic', module='local', version='1.0.267'), | |
| @Grab(group='com.cognitect', module='http-client', version='1.0.126'), | |
| ]) |
| ~/dev/scala/cljrepl $ cat build.sbt | |
| scalaVersion := "2.11.8" | |
| libraryDependencies ++= Seq( | |
| "org.clojure" % "clojure" % "1.8.0" | |
| ) | |
| ~/dev/scala/cljrepl $ cat src/main/scala/foo.scala | |
| import clojure.java.api.Clojure | |
| import clojure.java.api.Clojure.{`var` => cvar} |