All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.rcsb.mmtf.spark.examples.FragmentExample Maven / Gradle / Ivy

Go to download

MMTF Spark is a series of libraries and functions for using MMTF with Spark.

There is a newer version: 0.0.8
Show newest version
package org.rcsb.mmtf.spark.examples;

import org.rcsb.mmtf.spark.data.SegmentClusters;
import org.rcsb.mmtf.spark.data.StructureDataRDD;

/**
 * An example generating fragments from the whole PDB and then clustering them.
 * @author Anthony Bradley
 *
 */
public class FragmentExample {

	
	/**
	 * Function to fragment and group those fragments based on sequence identity.
	 * @param args the arguments for the function
	 */
	public static void main(String[] args) {		
		SegmentClusters fragCLusters = new StructureDataRDD().getFragments(8).groupBySequence();
		System.out.println(fragCLusters.size());
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy