Browse code

anno_link now is the same as anno_zoom

Zzz

Zuguang Gu authored on 13/04/2020 21:48:59 • GitHub committed on 13/04/2020 21:48:59
Showing1 changed files

... ...
@@ -2986,39 +2986,16 @@ subset_by_intersect = function(x, i) {
2986 2986
 }
2987 2987
 
2988 2988
 # == title
2989
-# Label Markers Annotation
2989
+# Link Annotation
2990 2990
 #
2991 2991
 # == param
2992
-# -... Pass to `anno_mark`.
2992
+# -... Pass to `anno_zoom`.
2993 2993
 #
2994 2994
 # == details
2995
-# `anno_link` is deprecated, please use `anno_mark` instead.
2995
+# This function is the same as `anno_zoom`. It links subsets of rows or columns to a list of graphic regions.
2996 2996
 #
2997 2997
 anno_link = function(...) {
2998
-	warning_wrap("anno_link() is deprecated, please use anno_mark() instead.")
2999
-	anno_mark(...)
3000
-}
3001
-
3002
-
3003
-# == title
3004
-# Label Markers as Row Annotation
3005
-#
3006
-# == param
3007
-# -... pass to `anno_link`.
3008
-#
3009
-# == details
3010
-# A wrapper of `anno_link` with pre-defined ``which`` to ``row``.
3011
-#
3012
-# You can directly use `anno_link` for row annotation if you call it in `rowAnnotation`.
3013
-#
3014
-# == value
3015
-# See help page of `anno_link`.
3016
-#
3017
-row_anno_link = function(...) {
3018
-	if(exists(".__under_SingleAnnotation__", envir = parent.frame())) {
3019
-		message_wrap("From version 1.99.0, you can directly use `anno_mark()` for row annotation if you call it in `rowAnnotation()`.")
3020
-	}
3021
-	anno_link(..., which = "row")
2998
+	anno_zoom(...)
3022 2999
 }
3023 3000
 
3024 3001
 # == title