GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - biojava/biojava-spark: :collision: Algorithms that are built around BioJava and run on Apache Spark

BranchesTags
Open more actions menu

Latest commit

 

History

113 Commits
113 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
icon.png
icon.png
 
 
pom.xml
pom.xml
 
 

Repository files navigation

BioJava-Spark

Algorithms that are built around BioJava and are running on Apache Spark

Build Status License Status Version

Starting up

Some initial instructions can be found on the mmtf-spark project

https://github.com/sbl-sdsc/mmtf-spark

First download and untar a Hadoop sequence file of the PDB (~7 GB download)

wget http://mmtf.rcsb.org/v1.0/hadoopfiles/full.tar
tar -xvf full.tar

Or you can get a C-alpha, phosphate, ligand only version (~800 Mb download)

wget http://mmtf.rcsb.org/v1.0/hadoopfiles/reduced.tar
tar -xvf reduced.tar

Second add the biojava-spark dependecy to your pom

<dependency>
	<groupId>org.biojava</groupId>
	<artifactId>biojava-spark</artifactId>
	<version>0.2.1</version>
</dependency>

Extra Biojava examples

Do some simple quality filtering

float maxResolution = 3.0f;
float maxRfree = 0.3f;
StructureDataRDD structureData = new StructureDataRDD("/path/to/file")
			.filterResolution(maxResolution)
			.filterRfree(maxRfree);

Summarsing the elements in the PDB

Map<String, Long> elementCountMap = BiojavaSparkUtils.findAtoms(structureData).countByElement();

Finding inter-atomic contacts from the PDB

Double mean = BiojavaSparkUtils.findContacts(structureData,
		new AtomSelectObject()
				.groupNameList(new String[] {"PRO","LYS"})
				.elementNameList(new String[] {"C"})
				.atomNameList(new String[] {"CA"}),
				cutoff)
		.getDistanceDistOfAtomInts("CA", "CA")
		.mean();
System.out.println("\nMean PRO-LYS CA-CA distance: " + mean);

About

💥 Algorithms that are built around BioJava and run on Apache Spark

Resources

Readme
LGPL-2.1 license
Activity
Custom properties

Stars

8 stars

Watchers

9 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.