Marker Statistics
Example 1
Summary: Analyze a data table by performing Marker Statistics, opening the 'data_table.jmp' file.
Code:
Open("data_table.jmp");
Marker Statistics();
Code Explanation:
- Open data_table data
- Perform Marker Statistics analysis.
Example 2
Summary: Runs the application of Marker Statistics to a data table, allowing for interactive exploration and analysis.
Code:
Open("data_table.jmp");
Marker Statistics();
dt = Open("data_table.jmp");
dt << Marker Statistics();
dt = Open("data_table.jmp");
Code Explanation:
- Open data table;
- Run Marker Statistics.
- Open data table;
- Apply Marker Statistics to dataset.
- Open data table;
Example 3
Summary: Creates and analyzes marker statistics for a data table, grouping by sex and setting ploidy to 2.
Code:
dt = Open("data_table.jmp");
obj = dt << Marker Statistics( Marker( Column Group( "Markers" ) ), Ploidy( 2 ), Grouping( :Sex ) );
obj << Redo Analysis;
Code Explanation:
- Open data table.
- Create Marker Statistics object.
- Specify Markers column group.
- Set ploidy to 2.
- Group by Sex.
- Redo analysis.
Marker Statistics using Is Scriptable
Example 1
Summary: Creates and configures a Marker Statistics object with specific settings, including column groups, ploidy, and levels table.
Code:
dt = Open("data_table.jmp");
test = Is Scriptable(
obj = Marker Statistics(
Marker( Column Group( "Markers" ) ),
With Marker( Column Group( "Markers" ) ),
Ploidy( 2 ),
Levels Table( 1 )
);
obj << Levels Table( 0 );
obj << LD Decay Plot( 0 );
);
Code Explanation:
- Open data table;
- Check if scriptable.
- Create Marker Statistics object.
- Set Marker column group.
- Set With Marker column group.
- Set Ploidy to 2.
- Set Levels Table to 1.
- Modify Levels Table to 0.
- Disable LD Decay Plot.
- End script execution.
Example 2
Summary: Creates a Marker Statistics object with specified column group, ploidy level, and unthreaded option, returning a scriptable result.
Code:
dt = Open("data_table.jmp");
test = Is Scriptable( obj = dt << Marker Statistics( Marker( Column Group( "Markers" ) ), Ploidy( 2 ), Unthreaded( 1 ) ) );
Code Explanation:
- Open data table;
- Assign dataset to variable
dt. - Create Marker Statistics object.
- Set marker column group.
- Define ploidy level as 2.
- Enable unthreaded option.
- Check if scriptable.
- Assign result to variable
test.
Example 3
Summary: Create and evaluate marker statistics for a data table, grouping by sex and setting ploidy level to 2.
Code:
dt = Open("data_table.jmp");
test = Is Scriptable( obj = dt << Marker Statistics( Marker( Column Group( "Markers" ) ), Ploidy( 2 ), Grouping( :Sex ) ) );
Code Explanation:
- Open data table;
- Assign data table to variable
dt. - Create marker statistics object.
- Specify marker column group.
- Set ploidy level to 2.
- Group by sex.
- Check if scriptable.
- Assign result to variable
test.
Example 4
Summary: Calculates marker statistics for a data table, grouping markers by column group and ploidy level, with optional sex-based grouping.
Code:
test = Is Scriptable(
dt = Open("data_table.jmp");
obj = dt << Marker Statistics( Marker( Column Group( "Markers" ) ), Ploidy( 2 ), By( :Sex ) );
);
Code Explanation:
- Check if scriptable.
- Open data table.
- Assign data table to variable.
- Perform marker statistics.
- Specify marker column group.
- Set ploidy level to 2.
- Group by sex.