ShiftContext

Overview

This tool shifts values in a context to left or right with N values.

What is it good for?

Coron does not accept attribute values that are smaller than 1. In these cases you will have to shift your context to eliminate these problematic values.

Synopsis

Usage: ./tool06_shiftContext.pl  file.basenum  N

Parameters:
   file.basenum      input context in .basenum format
   N                 a positive or negative integer

The output is printed to the standard output.

Example

Input (sample/context0.basenum):

0 1 3 4
0 2
0 1 2 4
1 2 4
0 1 2 4

Command:

./tool06_shiftContext.pl sample/context0.basenum 1

Output:

# Original file: sample/context0.basenum
# Shift:         1

1 2 4 5
1 3
1 2 3 5
2 3 5
1 2 3 5

This new context is now edible for Coron.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License