
org.rcsb.mmtf.spark.examples.FragmentExample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmtf-spark Show documentation
Show all versions of mmtf-spark Show documentation
MMTF Spark is a series of libraries and functions for using MMTF
with Spark.
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