Skip to content

Commit

Permalink
Release 2.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptzou committed Sep 13, 2018
1 parent 36986fe commit 94dc1f3
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Aligner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'edu.stanford.hivdb'
version = '2.2.7-1'
version = '2.2.8'

description = """Aligner"""

Expand Down
2 changes: 1 addition & 1 deletion DrugResistance/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'edu.stanford.hivdb'
version = '2.2.7-1'
version = '2.2.8'

description = """DrugResistance"""

Expand Down
63 changes: 62 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ through this URL:

http://localhost:8080/WebApplications/rest/graphql


### Development with Eclipse IDE

Sierra project uses Gradle to manage the dependencies, build and test. The
Expand All @@ -81,6 +80,67 @@ There may be an issue that you can't find "Gradle Project" in step #2. In this
case you can install the latest "Buildship Gradle Integration" with "Help" >
"Eclipse Marketplace...". then you can import a Gradle project in Eclipse.

### NucAmino on AWS Lambda

The sequence alignment program NucAmino is very compute-intensive. By default,
Sierra runs sequence alignment on local NucAmino instances. In the case of a
few thousands of sequences, the CPU load can easily become very high during the
process.

In the version 2.2.8, we introduce a new way to run NucAmino remotely on AWS
Lambda. AWS Lambda is an event-driven, serverless computing platform provided
by Amazon as a part of the Amazon Web Services. This platform allows user to
take the advantage of [MapReduce](https://en.wikipedia.org/wiki/MapReduce) to
process a large amount of data. The Sierra 2.2.8 is able to dispatch alignment
tasks to several Lambda instances and aggregate the results.

#### Usage

To enable this feature in your Sierra instance, you need first to create an AWS
function from a zip file created for NucAmino:

```bash
git clone https://github.com/hivdb/nucamino.git
cd nucamino
make aws_lambda_zip
```

Please follow the [README file][nucamino-github] of NucAmino for prerequisites.
The zip file should be located at `build/nucamino-aws-lambda.zip`.

Please follow the [AWS Lambda Document][lambda-create] to create a new Python
3.6 function. You can use any name and qualifier for this function.

To run a Sierra instance using the remote NucAmino, following system
environments are required/recommended:

```bash
# specify the AWS Lambda function name and qualifier (both required)
NUCAMINO_AWS_LAMBDA="<FUNCTION_NAME>:<FUNCTION_QUALIFIER>"

# specify AWS Region using `~/.aws/config` or this variable
AWS_REGION="us-west-1"

# specify AWS credentials using `~/.aws/credentials` or these variables
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
```

If you are using the Docker instance to run Sierra:

```bash
docker run \
-it \
-e "NUCAMINO_AWS_LAMBDA=<FUNCTION_NAME>:<FUNCTION_QUALIFIER>"
-e "AWS_REGION=us-west-1"
-e "AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID>"
-e "AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY>"
--publish=8080 hivdb/sierra prod
```

You can also use AWS IAM to provide further access control. Please search
IAM documents for further information.

### Console installation

Gradle Wrapper is shipped with this repository. One can easily install
Expand Down Expand Up @@ -133,3 +193,4 @@ greatly appreciated.
[asi-github]: https://github.com/FrontierScience/asi_interpreter
[fstrf]: https://www.fstrf.org/
[donation]: https://giving.stanford.edu/goto/shafergift
[lambda-create]: https://docs.aws.amazon.com/lambda/latest/dg/get-started-create-function.html
2 changes: 1 addition & 1 deletion TestResources/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'edu.stanford.hivdb'
version = '2.2.7-1'
version = '2.2.8'

description = """Test resources"""

Expand Down
2 changes: 1 addition & 1 deletion Utilities/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'edu.stanford.hivdb'
version = '2.2.7-1'
version = '2.2.8'

description = """Utilities"""

Expand Down
2 changes: 1 addition & 1 deletion WebApplications/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'edu.stanford.hivdb'
version = '2.2.7-1'
version = '2.2.8'

description = """WebApplications Maven Webapp"""

Expand Down
4 changes: 2 additions & 2 deletions WebApplications/src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = 2.2.7-1
versionDate = 2018-07-18
version = 2.2.8
versionDate = 2018-09-13
2 changes: 1 addition & 1 deletion docker/sierra/.latest-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20180913081140
20180913212301

0 comments on commit 94dc1f3

Please sign in to comment.