-
Notifications
You must be signed in to change notification settings - Fork 5
/
MutationInfo.h
42 lines (36 loc) · 1.5 KB
/
MutationInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// MutationInfo.h
// iGenomics
//
// Created by Stuckinaboot Inc. on 6/23/13.
//
//
#import <Foundation/Foundation.h>
#import "BWT_MutationFilter.h"
#define kMutationFormat @"Pos: %i, %s | Cov: %s\n"
#define kMutationExportFormat @"%i\t%s\t%s\t%@\n"
#define kCovStrFormat @"[%c=%i]"
#define kCovStrInsFormat @"[%c=%@]"
#define kInsStrFormat @"{%s=%i}"
#define kMutationTotalFormat @"Total Mutations: %i\n"
#define kMutationStrMaxLen 80
#define kMutationExportShouldIncludeMostCommonBase 1
@interface MutationInfo : NSObject {
}
@property (nonatomic) int pos, displayedPos, indexInSegmentNameArr;
@property (nonatomic) NSString* genomeName;
@property (nonatomic) NSArray *relevantInsertionsArr;
@property (nonatomic) char refChar;
@property (nonatomic) char* foundChars;
- (id)initWithPos:(int)p andRefChar:(char)refC
andFoundChars:(char*)foundC andDisplayedPos:(int)dispP
andInsertionsArr:(NSArray*)insArr heteroAllowance:(float)heteroAllowance;
- (void)freeUsedMemory;
+ (NSString*)mutationInfosOutputString:(NSArray*)mutationInfos isDiploid:(BOOL)isDiploid;
+ (NSArray*)mutationInfoDictsByProcessingForHaploid:(NSArray*)mutationInfoDicts;
+ (char*)createMutStrFromOriginalChar:(char)originalC
andFoundChars:(char*)fc pos:(int)pos relevantInsArr:(NSArray*)insertions;
+ (char*)createMutCovStrFromFoundChars:(char*)fc
andPos:(int)pos relevantInsArr:(NSArray*)insertions;
+ (BOOL)mutationInfoObjectsHaveSameContents:(MutationInfo*)info1 :(MutationInfo*)info2;
@end